Changeset 4929
- Timestamp:
- 02/23/2007 08:31:07 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/classic/comments-popup.php
r4890 r4929 22 22 <h2 id="comments"><?php _e("Comments"); ?></h2> 23 23 24 <p><a href="<?php echo get_ option('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p>24 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> 25 25 26 26 <?php if ('open' == $post->ping_status) { ?> -
trunk/wp-content/themes/default/comments-popup.php
r4890 r4929 22 22 <h2 id="comments">Comments</h2> 23 23 24 <p><a href="<?php echo get_ option('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>24 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p> 25 25 26 26 <?php if ('open' == $post->ping_status) { ?> -
trunk/wp-includes/feed.php
r4886 r4929 90 90 91 91 92 function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = ' ') {93 $url = comments_rss($commentsrssfilename);92 function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'nolongerused') { 93 $url = get_post_comments_feed_link();; 94 94 echo "<a href='$url'>$link_text</a>"; 95 95 } 96 96 97 97 98 function comments_rss($commentsrssfilename = '') { 99 global $id; 100 101 if ( '' != get_option('permalink_structure') ) 102 $url = trailingslashit( get_permalink() ) . user_trailingslashit('feed'); 103 else 104 $url = get_option('home') . "/$commentsrssfilename?feed=rss2&p=$id"; 105 106 return apply_filters('post_comments_feed_link', $url); 98 function comments_rss($commentsrssfilename = 'nolongerused') { 99 return get_post_comments_feed_link(); 107 100 } 108 101 -
trunk/wp-includes/link-template.php
r4886 r4929 248 248 } 249 249 250 function get_post_comments_feed_link($post_id = '', $feed = 'rss2') { 251 global $id; 252 253 if ( empty($post_id) ) 254 $post_id = $id; 255 256 if ( '' != get_option('permalink_structure') ) { 257 $url = trailingslashit( get_permalink() ) . 'feed'; 258 if ( 'rss2' != $feed ) 259 $url .= "/$feed"; 260 $url = user_trailingslashit($url); 261 } else { 262 $url = get_option('home') . "/?feed=$feed&p=$id"; 263 } 264 265 return apply_filters('post_comments_feed_link', $url); 266 } 267 250 268 function edit_post_link($link = 'Edit This', $before = '', $after = '') { 251 269 global $post;
Note: See TracChangeset
for help on using the changeset viewer.