Ticket #5238: self-link.diff
File self-link.diff, 1.8 KB (added by , 18 years ago) |
---|
-
wp-includes/feed-rss2.php
15 15 16 16 <channel> 17 17 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 18 <atom:link href="<?php bloginfo('rss2_url')?>" rel="self" type="application/rss+xml" />18 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> 19 19 <link><?php bloginfo_rss('url') ?></link> 20 20 <description><?php bloginfo_rss("description") ?></description> 21 21 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> -
wp-includes/feed-rss2-comments.php
17 17 else 18 18 printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 19 19 ?></title> 20 <atom:link href="<?php bloginfo('comments_rss2_url')?>" rel="self" type="application/rss+xml" />20 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> 21 21 <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link> 22 22 <description><?php bloginfo_rss("description") ?></description> 23 23 <pubDate><?php echo gmdate('r'); ?></pubDate> -
wp-includes/feed.php
220 220 } 221 221 } 222 222 223 function self_link() { 224 echo 'http' 225 . ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://' 226 . $_SERVER['HTTP_HOST'] 227 . wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1); 228 } 229 223 230 ?>