Pass the filename to the wp_feed_cache_transient_lifetime filter to give the plugins some context. Fixes #10565 props dd32.

git-svn-id: https://develop.svn.wordpress.org/trunk@11787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-08-07 17:17:40 +00:00
parent 8381ee663f
commit 2cd8ded9aa

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);
$this->lifetime = apply_filters('wp_feed_cache_transient_lifetime', $this->lifetime, $filename);
}
function save($data) {