Make WordPress Core

Ticket #25229: wp-includes-feed-rss.2.diff

File wp-includes-feed-rss.2.diff, 955 bytes (added by dustyf, 11 years ago)

Second pass at wp-includes/feed-rss.php. Forgot to wrap the doc block in php tags.

  • wp-includes/feed-rss.php

     
    1717        <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
    1818        <docs>http://backend.userland.com/rss092</docs>
    1919        <language><?php bloginfo_rss( 'language' ); ?></language>
     20        <?php
     21        /**
     22         * Fired at the end of the RSS Feed Header.
     23         *
     24         * @since 2.0.0
     25         */
     26        ?>
    2027        <?php do_action('rss_head'); ?>
    2128
    2229<?php while (have_posts()) : the_post(); ?>
     
    2431                <title><?php the_title_rss() ?></title>
    2532                <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    2633                <link><?php the_permalink_rss() ?></link>
     34                <?php
     35                /**
     36                 * Fired at the end of each RSS feed item.
     37                 *
     38                 * @since 2.0.0
     39                 */
     40                ?>
    2741                <?php do_action('rss_item'); ?>
    2842        </item>
    2943<?php endwhile; ?>