WordPress.org

Make WordPress Core

Ticket #25510: 25510.3.diff

File 25510.3.diff, 805 bytes (added by swissspidy, 8 years ago)
  • src/wp-includes/class-feed.php

    diff --git src/wp-includes/class-feed.php src/wp-includes/class-feed.php
    index 342e04d..6a6a7e4 100644
    class WP_Feed_Cache_Transient { 
    2323        function __construct($location, $filename, $extension) {
    2424                $this->name = 'feed_' . $filename;
    2525                $this->mod_name = 'feed_mod_' . $filename;
     26
     27                /**
     28                 * Filters the feed cache transient lifetime.
     29                 *
     30                 * Allows to change the cache duration of the feed.
     31                 *
     32                 * @since 2.8.0
     33                 *
     34                 * @param int    $this->lifetime Cache duration in seconds. Default is 43200 seconds (12 hours).
     35                 * @param string $filename       Unique identifier for the cache object
     36                 */
    2637                $this->lifetime = apply_filters('wp_feed_cache_transient_lifetime', $this->lifetime, $filename);
    2738        }
    2839