Ticket #25229: wp-includes-feed-rss2.diff
File wp-includes-feed-rss2.diff, 2.1 KB (added by , 11 years ago) |
---|
-
wp-includes/feed-rss2.php
17 17 xmlns:atom="http://www.w3.org/2005/Atom" 18 18 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 19 19 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'); ?> 21 27 > 22 28 23 29 <channel> … … 27 33 <description><?php bloginfo_rss("description") ?></description> 28 34 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> 29 35 <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 ?> 30 45 <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 ?> 31 55 <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'); ?> 33 63 <?php while( have_posts()) : the_post(); ?> 34 64 <item> 35 65 <title><?php the_title_rss() ?></title> … … 54 84 <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss> 55 85 <slash:comments><?php echo get_comments_number(); ?></slash:comments> 56 86 <?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'); ?> 58 94 </item> 59 95 <?php endwhile; ?> 60 96 </channel>