Changeset 8619

Show
Ignore:
Timestamp:
08/11/08 20:50:41 (3 months ago)
Author:
westi
Message:

Add syndication frequency recommendations to rss2 feeds. See #3513 props _ck_.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/feed-rss2-comments.php

    r7244 r8619  
    1414    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    1515    xmlns:atom="http://www.w3.org/2005/Atom" 
     16    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
    1617    > 
    1718<channel> 
     
    2930    <pubDate><?php echo gmdate('r'); ?></pubDate> 
    3031    <?php the_generator( 'rss2' ); ?> 
     32    <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 
     33    <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 
    3134    <?php do_action('commentsrss2_head'); ?> 
    3235<?php 
  • trunk/wp-includes/feed-rss2.php

    r7244 r8619  
    1717    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    1818    xmlns:atom="http://www.w3.org/2005/Atom" 
     19    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
    1920    <?php do_action('rss2_ns'); ?> 
    2021> 
     
    2829    <?php the_generator( 'rss2' ); ?> 
    2930    <language><?php echo get_option('rss_language'); ?></language> 
     31    <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 
     32    <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 
    3033    <?php do_action('rss2_head'); ?> 
    3134    <?php while( have_posts()) : the_post(); ?>