Make WordPress Core


Ignore:
Timestamp:
02/23/2007 08:31:07 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed.php

    r4886 r4929  
    9090
    9191
    92 function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = '') {
    93     $url = comments_rss($commentsrssfilename);
     92function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'nolongerused') {
     93    $url = get_post_comments_feed_link();;
    9494    echo "<a href='$url'>$link_text</a>";
    9595}
    9696
    9797
    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&amp;p=$id";
    105 
    106     return apply_filters('post_comments_feed_link', $url);
     98function comments_rss($commentsrssfilename = 'nolongerused') {
     99    return get_post_comments_feed_link();
    107100}
    108101
Note: See TracChangeset for help on using the changeset viewer.