WordPress.org

Make WordPress Core

Ticket #25510: 25510.diff

File 25510.diff, 1.1 KB (added by swissspidy, 8 years ago)
  • src/wp-includes/class-feed.php

    From 45317b664242d9cf37395a61227f057a5385d3c8 Mon Sep 17 00:00:00 2001
    From: swissspidy <hello@pascalbirchler.ch>
    Date: Mon, 7 Oct 2013 15:29:35 +0200
    Subject: [PATCH] Hooks Docs: wp-includes/class-feed.php
    
    ---
     src/wp-includes/class-feed.php | 11 +++++++++++
     1 file changed, 11 insertions(+)
    
    diff --git a/src/wp-includes/class-feed.php b/src/wp-includes/class-feed.php
    index 342e04d..0ec0739 100644
    a b 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 The lifetime of the transient. Default is 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