[wp-trac] [WordPress Trac] #43357: SimplePie deprecated calls modified

WordPress Trac noreply at wordpress.org
Thu Apr 30 13:20:04 UTC 2020


#43357: SimplePie deprecated calls modified
----------------------------------------+-----------------------------
 Reporter:  arena                       |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Feeds                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------

Comment (by arena):

 So last patch (#43357-4 2020-04-30.patch) might be the more conventional
 way to do it

 Adding to  WP_Feed_Cache :
 * setting handler 'wordpress' ($handlers)
 * get_handlers() function
 * create() function is annonced to be deprecated in 1.3.1 but when removed
 the code do not work as intended.

 Adding to WP_Feed_Cache_Transient :
 * implements SimplePie_Cache_Base (required by SimplePie)
 * adding a function to parse $location (same as SimplePie/Cache.php)
 * $lifetime is a parameter of $location

 Changing wp-includes/feed.php
 * Only one apply_filters 'wp_feed_cache_transient_lifetime' now
 * registering classes the new way
 * setting cache_location with defined handler

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43357#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list