Pass the filename to the wp_feed_cache_transient_lifetime filter to give the plugins some context. Fixes #10565 props dd32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
45ec67dc13
commit
f027bbd170
|
@ -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);
|
$this->lifetime = apply_filters('wp_feed_cache_transient_lifetime', $this->lifetime, $filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
function save($data) {
|
function save($data) {
|
||||||
|
|
Loading…
Reference in New Issue