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:
westi 2009-05-25 09:13:48 +00:00
parent bd2ed2c190
commit cdcb5859c8
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class WP_Feed_Cache_Transient {
function WP_Feed_Cache_Transient($location, $filename, $extension) { function WP_Feed_Cache_Transient($location, $filename, $extension) {
$this->name = 'feed_' . $filename; $this->name = 'feed_' . $filename;
$this->mod_name = 'feed_mod_' . $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) { function save($data) {

View File

@ -550,7 +550,7 @@ function fetch_feed($url) {
$feed->set_feed_url($url); $feed->set_feed_url($url);
$feed->set_cache_class('WP_Feed_Cache'); $feed->set_cache_class('WP_Feed_Cache');
$feed->set_file_class('WP_SimplePie_File'); $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->init();
$feed->handle_content_type(); $feed->handle_content_type();