Remove context from wp_feed_cache_transient_lifetime filter and filter in fetch_feed as well. Fixes #9926.

git-svn-id: https://develop.svn.wordpress.org/trunk@11453 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-05-25 09:13:48 +00:00
parent cd50b4f950
commit 1b7643d281
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) {
$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) {

View File

@ -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();