WordPress.org

Make WordPress Core

Ticket #11117: 11117_2.patch

File 11117_2.patch, 588 bytes (added by nacin, 5 years ago)

Using do_action_ref_array

  • 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