Skip to content

Commit

Permalink
Inline documentation for hooks in wp-includes/class-feed.php.
Browse files Browse the repository at this point in the history
Props swissspidy.
Fixes #25510.

Built from https://develop.svn.wordpress.org/trunk@25733


git-svn-id: http://core.svn.wordpress.org/trunk@25646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
DrewAPicture committed Oct 8, 2013
1 parent bc7ea63 commit 3862698
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion wp-includes/class-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,17 @@ class WP_Feed_Cache_Transient {
function __construct($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);

$lifetime = $this->lifetime;
/**
* Filter the transient lifetime of the feed cache.
*
* @since 2.8.0
*
* @param int $lifetime Cache duration in seconds. Default is 43200 seconds (12 hours).
* @param string $filename Unique identifier for the cache object.
*/
$this->lifetime = apply_filters( 'wp_feed_cache_transient_lifetime', $lifetime, $filename);
}

function save($data) {
Expand Down

0 comments on commit 3862698

Please sign in to comment.