Ticket #5205: rss_atom_link_patch.diff
| File rss_atom_link_patch.diff, 1.6 KB (added by lexhair, 5 years ago) |
|---|
-
feed-rss2-comments.php
6 6 <rss version="2.0" 7 7 xmlns:content="http://purl.org/rss/1.0/modules/content/" 8 8 xmlns:dc="http://purl.org/dc/elements/1.1/" 9 xmlns:atom="http://www.w3.org/2005/Atom" 9 10 > 10 11 <channel> 11 12 <title><?php … … 16 17 else 17 18 printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 18 19 ?></title> 20 <atom:link href="<?php bloginfo('comments_rss2_url') ?>" rel="self" type="application/rss+xml" /> 19 21 <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link> 20 22 <description><?php bloginfo_rss("description") ?></description> 21 23 <pubDate><?php echo gmdate('r'); ?></pubDate> -
feed-rss2.php
9 9 xmlns:content="http://purl.org/rss/1.0/modules/content/" 10 10 xmlns:wfw="http://wellformedweb.org/CommentAPI/" 11 11 xmlns:dc="http://purl.org/dc/elements/1.1/" 12 xmlns:atom="http://www.w3.org/2005/Atom" 12 13 <?php do_action('rss2_ns'); ?> 13 14 > 14 15 15 16 <channel> 16 17 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 18 <atom:link href="<?php bloginfo('rss2_url') ?>" rel="self" type="application/rss+xml" /> 17 19 <link><?php bloginfo_rss('url') ?></link> 18 20 <description><?php bloginfo_rss("description") ?></description> 19 21 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>
