Add get_post_comments_feed_link() and have popup comments templates use it.

git-svn-id: https://develop.svn.wordpress.org/trunk@4929 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-02-23 08:31:07 +00:00
parent 6c6458f7c9
commit 27ee037027
4 changed files with 24 additions and 13 deletions
+4 -11
View File
@@ -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&amp;p=$id";
return apply_filters('post_comments_feed_link', $url);
function comments_rss($commentsrssfilename = 'nolongerused') {
return get_post_comments_feed_link();
}