Description
PHP Deprecated: "SimplePie\SimplePie::set_file_class()" is deprecated since SimplePie 1.3,
please use "SimplePie\SimplePie::get_registry()" instead.
in /wp-includes/SimplePie/src/SimplePie.php on line 1167
Root Cause
File: includes/abstract/feedzy-rss-feeds-admin-abstract.php
Line: 861
Method: init_feed()
$feed->set_file_class( 'WP_SimplePie_File' );
This calls the deprecated set_file_class() API on the SimplePie instance. WordPress 6.3 upgraded its bundled SimplePie to v1.8+ (using the SimplePie\SimplePie namespace), which now actively emits a PHP deprecation notice for this method. The modern replacement is get_registry()->register('File', 'WP_SimplePie_File').
Suggested Fix
In init_feed(), replace line 861:
// Before (deprecated)
$feed->set_file_class( 'WP_SimplePie_File' );
// After (modern API)
$feed->get_registry()->register( 'File', 'WP_SimplePie_File' );
Note: get_registry() has been available since SimplePie 1.3. Since the plugin already requires WP 6.0+ (which bundles SimplePie 1.5+), no backward-compatibility guard is needed.
Step-by-step reproduction instructions
- Install plugin on WordPress 6.3+
- Add
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); to wp-config.php
- Load any page that renders a feed shortcode, widget, or block
- Check
wp-content/debug.log — the notice appears on every feed fetch
Screenshots, screen recording, code snippet or Help Scout ticket
https://secure.helpscout.net/conversation/3274418802/486108
Environment info
No response
Is the issue you are reporting a regression
No
Description
PHP Deprecated: "SimplePie\SimplePie::set_file_class()" is deprecated since SimplePie 1.3,
please use "SimplePie\SimplePie::get_registry()" instead.
in /wp-includes/SimplePie/src/SimplePie.php on line 1167
Root Cause
File:
includes/abstract/feedzy-rss-feeds-admin-abstract.phpLine: 861
Method:
init_feed()This calls the deprecated
set_file_class()API on the SimplePie instance. WordPress 6.3 upgraded its bundled SimplePie to v1.8+ (using theSimplePie\SimplePienamespace), which now actively emits a PHP deprecation notice for this method. The modern replacement isget_registry()->register('File', 'WP_SimplePie_File').Suggested Fix
In
init_feed(), replace line 861:Note:
get_registry()has been available since SimplePie 1.3. Since the plugin already requires WP 6.0+ (which bundles SimplePie 1.5+), no backward-compatibility guard is needed.Step-by-step reproduction instructions
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);towp-config.phpwp-content/debug.log— the notice appears on every feed fetchScreenshots, screen recording, code snippet or Help Scout ticket
https://secure.helpscout.net/conversation/3274418802/486108
Environment info
No response
Is the issue you are reporting a regression
No