Make WordPress Core

Ticket #29204: 29204.2.diff

File 29204.2.diff, 1.6 KB (added by markoheijnen, 8 years ago)
  • src/wp-includes/class-feed.php

     
    1010         * @static
    1111         * @access public
    1212         */
    13         public function create($location, $filename, $extension) {
     13        public static function get_handler($location, $filename, $extension) {
    1414                return new WP_Feed_Cache_Transient($location, $filename, $extension);
    1515        }
    1616}
  • src/wp-includes/class-simplepie.php

     
    967967        /**
    968968         * Set which class SimplePie uses for caching
    969969         */
    970         public function set_cache_class($class = 'SimplePie_Cache')
     970        public function set_cache_class( $class = 'SimplePie_Cache', $legacy = true )
    971971        {
    972                 return $this->registry->register('Cache', $class, true);
     972                return $this->registry->register( 'Cache', $class, $legacy );
    973973        }
    974974
    975975        /**
  • src/wp-includes/feed.php

     
    626626        // constructor sets it before we have a chance to set the sanitization class
    627627        $feed->sanitize = new WP_SimplePie_Sanitize_KSES();
    628628
    629         $feed->set_cache_class( 'WP_Feed_Cache' );
     629        $feed->set_cache_class( 'WP_Feed_Cache', false );
    630630        $feed->set_file_class( 'WP_SimplePie_File' );
    631631
    632632        $feed->set_feed_url( $url );