Remove context from wp_feed_cache_transient_lifetime filter and filter in fetch_feed as well. Fixes #9926.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bd2ed2c190
commit
cdcb5859c8
|
@ -32,7 +32,7 @@ class WP_Feed_Cache_Transient {
|
|||
function WP_Feed_Cache_Transient($location, $filename, $extension) {
|
||||
$this->name = 'feed_' . $filename;
|
||||
$this->mod_name = 'feed_mod_' . $filename;
|
||||
$this->lifetime = apply_filters('wp_feed_cache_transient_lifetime', $this->lifetime, $filename);
|
||||
$this->lifetime = apply_filters('wp_feed_cache_transient_lifetime', $this->lifetime);
|
||||
}
|
||||
|
||||
function save($data) {
|
||||
|
|
|
@ -550,7 +550,7 @@ 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(43200);
|
||||
$feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 43200));
|
||||
$feed->init();
|
||||
$feed->handle_content_type();
|
||||
|
||||
|
|
Loading…
Reference in New Issue