Ticket #25229: wp-includes-feed-rdf.diff
File wp-includes-feed-rdf.diff, 1.7 KB (added by , 11 years ago) |
---|
-
wp-includes/feed-rdf.php
16 16 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 17 17 xmlns:admin="http://webns.net/mvcb/" 18 18 xmlns:content="http://purl.org/rss/1.0/modules/content/" 19 <?php do_action('rdf_ns'); ?> 19 <?php 20 /** 21 * Fired at the end of the feed root to add namespaces. 22 * 23 * @since 2.0.0 24 */ 25 do_action('rdf_ns'); 26 ?> 20 27 > 21 28 <channel rdf:about="<?php bloginfo_rss("url") ?>"> 22 29 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 23 30 <link><?php bloginfo_rss('url') ?></link> 24 31 <description><?php bloginfo_rss('description') ?></description> 25 32 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 33 <?php //duplicate_hook ?> 26 34 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 35 <?php //duplicate_hook ?> 27 36 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 28 37 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 29 <?php do_action('rdf_header'); ?> 38 <?php 39 /** 40 * Fired at the end of the RDF feed header. 41 * 42 * @since 2.0.0 43 */ 44 do_action('rdf_header'); 45 ?> 30 46 <items> 31 47 <rdf:Seq> 32 48 <?php while (have_posts()): the_post(); ?> … … 48 64 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 49 65 <content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded> 50 66 <?php endif; ?> 51 <?php do_action('rdf_item'); ?> 67 <?php 68 /** 69 * Fired at the end of each RDF feed item. 70 * 71 * @since 2.0.0 72 */ 73 do_action('rdf_item'); 74 ?> 52 75 </item> 53 76 <?php endwhile; ?> 54 77 </rdf:RDF>