mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Feeds: Register transient feed cache handler using the recommended method for SimplePie 1.3 or later.
This fixes a "Non-static method cannot be called statically" fatal error when calling `fetch_feed()` on PHP 8. Follow-up to [21644], [21652], [22366], [22599]. Props dd32, afragen, Senning, markoheijnen, ComputerGuru, useStrict, Ipstenu, nacin, l3rady, HoaSi, NathanAtmoz, fabifott, jfoulquier, thefarlilacfield, subscriptiongroup, rogerlos, Mte90, mopsyd, dossy, stulab, MadtownLems, roikles, justlevine, joostdevalk, OptimizingMatters, hellofromTonya, bph, ayeshrajans, SergeyBiryukov. Fixes #29204. git-svn-id: https://develop.svn.wordpress.org/trunk@49565 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5,8 +5,16 @@
|
||||
* @package WordPress
|
||||
* @subpackage Feed
|
||||
* @since 4.7.0
|
||||
* @deprecated 5.6.0
|
||||
*/
|
||||
|
||||
_deprecated_file(
|
||||
basename( __FILE__ ),
|
||||
'5.6.0',
|
||||
'',
|
||||
__( 'This file is only loaded for backward compatibility with SimplePie 1.2.x. Please consider switching to a recent SimplePie version.' )
|
||||
);
|
||||
|
||||
/**
|
||||
* Core class used to implement a feed cache.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user