Make WordPress Core


Ignore:
Timestamp:
11/12/2020 02:34:33 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-feed-cache.php

    r42343 r49565  
    66 * @subpackage Feed
    77 * @since 4.7.0
     8 * @deprecated 5.6.0
    89 */
     10
     11_deprecated_file(
     12    basename( __FILE__ ),
     13    '5.6.0',
     14    '',
     15    __( 'This file is only loaded for backward compatibility with SimplePie 1.2.x. Please consider switching to a recent SimplePie version.' )
     16);
    917
    1018/**
Note: See TracChangeset for help on using the changeset viewer.