WordPress.org

Make WordPress Core

Changeset 11453


Ignore:
Timestamp:
05/25/09 09:13:48 (6 years ago)
Author:
westi
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-feed.php

    r11446 r11453  
    3333        $this->name = 'feed_' . $filename; 
    3434        $this->mod_name = 'feed_mod_' . $filename; 
    35         $this->lifetime = apply_filters('wp_feed_cache_transient_lifetime', $this->lifetime, $filename); 
     35        $this->lifetime = apply_filters('wp_feed_cache_transient_lifetime', $this->lifetime); 
    3636    } 
    3737 
  • trunk/wp-includes/feed.php

    r11383 r11453  
    551551    $feed->set_cache_class('WP_Feed_Cache'); 
    552552    $feed->set_file_class('WP_SimplePie_File'); 
    553     $feed->set_cache_duration(43200); 
     553    $feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 43200)); 
    554554    $feed->init(); 
    555555    $feed->handle_content_type(); 
Note: See TracChangeset for help on using the changeset viewer.