Pass the url to the 'wp_feed_cache_transient_lifetime' filter to give more context.
Allow plugins to set extra options on SimplePie using the new 'wp_feed_options' action. Fixes #11117 props nacin. git-svn-id: https://develop.svn.wordpress.org/trunk@12484 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c7d6c83b94
commit
6979dbdc02
@ -524,7 +524,8 @@ function fetch_feed($url) {
|
||||
$feed->set_feed_url($url);
|
||||
$feed->set_cache_class('WP_Feed_Cache');
|
||||
$feed->set_file_class('WP_SimplePie_File');
|
||||
$feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 43200));
|
||||
$feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 43200, $url));
|
||||
do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );
|
||||
$feed->init();
|
||||
$feed->handle_content_type();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user