Ticket #29204: 29204.2.diff
File 29204.2.diff, 1.6 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-feed.php
10 10 * @static 11 11 * @access public 12 12 */ 13 public function create($location, $filename, $extension) {13 public static function get_handler($location, $filename, $extension) { 14 14 return new WP_Feed_Cache_Transient($location, $filename, $extension); 15 15 } 16 16 } -
src/wp-includes/class-simplepie.php
967 967 /** 968 968 * Set which class SimplePie uses for caching 969 969 */ 970 public function set_cache_class( $class = 'SimplePie_Cache')970 public function set_cache_class( $class = 'SimplePie_Cache', $legacy = true ) 971 971 { 972 return $this->registry->register( 'Cache', $class, true);972 return $this->registry->register( 'Cache', $class, $legacy ); 973 973 } 974 974 975 975 /** -
src/wp-includes/feed.php
626 626 // constructor sets it before we have a chance to set the sanitization class 627 627 $feed->sanitize = new WP_SimplePie_Sanitize_KSES(); 628 628 629 $feed->set_cache_class( 'WP_Feed_Cache' );629 $feed->set_cache_class( 'WP_Feed_Cache', false ); 630 630 $feed->set_file_class( 'WP_SimplePie_File' ); 631 631 632 632 $feed->set_feed_url( $url );