WordPress.org

Make WordPress Core

Ticket #11117: 11117_3.patch

File 11117_3.patch, 587 bytes (added by nacin, 5 years ago)

$url shouldn't be by reference.

  • feed.php

     
    522522        $feed->set_feed_url($url); 
    523523        $feed->set_cache_class('WP_Feed_Cache'); 
    524524        $feed->set_file_class('WP_SimplePie_File'); 
    525         $feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 43200)); 
     525        $feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 43200, $url ) ); 
     526        do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); 
    526527        $feed->init(); 
    527528        $feed->handle_content_type(); 
    528529