From 27ef389c2630c10f704e930694853f54c8882d02 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 8 Oct 2013 20:06:29 +0000 Subject: [PATCH] Inline documentation for hooks in wp-includes/class-feed.php. Props swissspidy. Fixes #25510. git-svn-id: https://develop.svn.wordpress.org/trunk@25733 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-feed.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-feed.php b/src/wp-includes/class-feed.php index 342e04dd59..c33b30247e 100644 --- a/src/wp-includes/class-feed.php +++ b/src/wp-includes/class-feed.php @@ -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) {