WordPress.org

Make WordPress Core

Ticket #9133: 9133-update-period-filter-added.patch

File 9133-update-period-filter-added.patch, 696 bytes (added by hakre, 6 years ago)

patch adds the filter for rss_update_period in feed-rdf.php

  • wp-includes/feed-rdf.php

     
    2525        <description><?php bloginfo_rss('description') ?></description> 
    2626        <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 
    2727        <?php the_generator( 'rdf' ); ?> 
    28         <sy:updatePeriod>hourly</sy:updatePeriod> 
     28        <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 
    2929        <sy:updateFrequency>1</sy:updateFrequency> 
    3030        <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 
    3131        <?php do_action('rdf_header'); ?>