Skip to content

Commit 71e55e7

Browse files
fix: deprecated notice
1 parent 00211a9 commit 71e55e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/abstract/feedzy-rss-feeds-admin-abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ private function init_feed( $feed_url, $cache, $sc, $allow_https = FEEDZY_ALLOW_
858858
require_once ABSPATH . WPINC . '/class-wp-feed-cache-transient.php';
859859
require_once ABSPATH . WPINC . '/class-wp-simplepie-file.php';
860860

861-
$feed->get_registry( 'WP_SimplePie_File' );
861+
$feed->get_registry()->register( SimplePie\File::class, 'WP_SimplePie_File' );
862862
$default_agent = $this->get_default_user_agent( $feed_url );
863863
$feed->set_useragent( apply_filters( 'http_headers_useragent', $default_agent ) );
864864
if ( false === apply_filters( 'feedzy_disable_db_cache', false, $feed_url ) ) {

0 commit comments

Comments
 (0)