Make WordPress Core

Changeset 25733


Ignore:
Timestamp:
10/08/2013 08:06:29 PM (13 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-includes/class-feed.php.

Props swissspidy.
Fixes #25510.

File:
1 edited

Legend:

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

    r25616 r25733  
    2424                $this->name = 'feed_' . $filename;
    2525                $this->mod_name = 'feed_mod_' . $filename;
    26                 $this->lifetime = apply_filters('wp_feed_cache_transient_lifetime', $this->lifetime, $filename);
     26
     27                $lifetime = $this->lifetime;
     28                /**
     29                 * Filter the transient lifetime of the feed cache.
     30                 *
     31                 * @since 2.8.0
     32                 *
     33                 * @param int    $lifetime Cache duration in seconds. Default is 43200 seconds (12 hours).
     34                 * @param string $filename Unique identifier for the cache object.
     35                 */
     36                $this->lifetime = apply_filters( 'wp_feed_cache_transient_lifetime', $lifetime, $filename);
    2737        }
    2838
Note: See TracChangeset for help on using the changeset viewer.