Make WordPress Core

Ticket #25229: wp-includes-feed-rss2.diff

File wp-includes-feed-rss2.diff, 2.1 KB (added by dustyf, 13 years ago)

Second pass at wp-includes-feed-rss2.diff - cleaned something up.

  • wp-includes/feed-rss2.php

     
    1717        xmlns:atom="http://www.w3.org/2005/Atom"
    1818        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    1919        xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    20         <?php do_action('rss2_ns'); ?>
     20        <?php
     21        /**
     22         * Fired at the end of the RSS root to add namespaces.
     23         *
     24         * @since 2.0.0
     25         */
     26        do_action('rss2_ns'); ?>
    2127>
    2228
    2329<channel>
     
    2733        <description><?php bloginfo_rss("description") ?></description>
    2834        <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
    2935        <language><?php bloginfo_rss( 'language' ); ?></language>
     36        <?php
     37        /**
     38         * Allows filtering of the declaration of the period of time the feed is updated.
     39         *
     40         * @since 2.1
     41         *
     42         * @param string The update period. Accepted values are hourly, daily, weekly, monthly, and yearly.
     43         */
     44        ?>
    3045        <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
     46        <?php
     47        /**
     48         * Allows filtering of the frequency of updating within the update period.
     49         *
     50         * @since 2.1
     51         *
     52         * @param string An integer representing the frequency of udpates within the update period.
     53         */
     54        ?>
    3155        <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    32         <?php do_action('rss2_head'); ?>
     56        <?php
     57        /**
     58         * Fired at the end of the RSS2 Feed Header.
     59         *
     60         * @since 2.0.0
     61         */
     62        do_action('rss2_head'); ?>
    3363        <?php while( have_posts()) : the_post(); ?>
    3464        <item>
    3565                <title><?php the_title_rss() ?></title>
     
    5484                <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
    5585                <slash:comments><?php echo get_comments_number(); ?></slash:comments>
    5686<?php rss_enclosure(); ?>
    57         <?php do_action('rss2_item'); ?>
     87        <?php
     88        /**
     89         * Fired at the end of each RSS2 feed item.
     90         *
     91         * @since 2.0.0
     92         */
     93        do_action('rss2_item'); ?>
    5894        </item>
    5995        <?php endwhile; ?>
    6096</channel>