mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
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:
+4
-11
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user