Make WordPress Core

Changeset 8619


Ignore:
Timestamp:
08/11/2008 08:50:41 PM (16 years ago)
Author:
westi
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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(); ?>
Note: See TracChangeset for help on using the changeset viewer.