Ticket #25229: wp-includes-feed-rdf.3.diff
File wp-includes-feed-rdf.3.diff, 1.7 KB (added by , 11 years ago) |
---|
-
src/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 * Fires 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> … … 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> 26 33 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 34 <?php //duplicate_hook ?> 27 35 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 28 36 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 29 <?php do_action('rdf_header'); ?> 37 <?php 38 /** 39 * Fires at the end of the RDF feed header. 40 * 41 * @since 2.0.0 42 */ 43 do_action( 'rdf_header' ); 44 ?> 30 45 <items> 31 46 <rdf:Seq> 32 47 <?php while (have_posts()): the_post(); ?> … … 48 63 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 49 64 <content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded> 50 65 <?php endif; ?> 51 <?php do_action('rdf_item'); ?> 66 <?php 67 /** 68 * Fires at the end of each RDF feed item. 69 * 70 * @since 2.0.0 71 */ 72 do_action( 'rdf_item' ); 73 ?> 52 74 </item> 53 75 <?php endwhile; ?> 54 76 </rdf:RDF>