diff options
Diffstat (limited to 'wp-includes/feed.php')
| -rw-r--r-- | wp-includes/feed.php | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 04f54d9..abee911 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -89,21 +89,14 @@ function comment_text_rss() { } -function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = '') { - $url = comments_rss($commentsrssfilename); +function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'nolongerused') { + $url = get_post_comments_feed_link();; echo "<a href='$url'>$link_text</a>"; } -function comments_rss($commentsrssfilename = '') { - global $id; - - if ( '' != get_option('permalink_structure') ) - $url = trailingslashit( get_permalink() ) . user_trailingslashit('feed'); - else - $url = get_option('home') . "/$commentsrssfilename?feed=rss2&p=$id"; - - return apply_filters('post_comments_feed_link', $url); +function comments_rss($commentsrssfilename = 'nolongerused') { + return get_post_comments_feed_link(); } |
