Make WordPress Core

Changeset 720


Ignore:
Timestamp:
01/05/2004 03:14:12 AM (22 years ago)
Author:
alex_t_king
Message:

using the comments_link_rss function

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments.php

    r719 r720  
    2222<h2 id="comments">Comments</h2>
    2323
    24 <p><a href="<?php echo $siteurl; ?>/wp-commentsrss2.php?p=<?php echo $id; ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
     24<p><?php comments_rss_link('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></p>
    2525
    2626<?php if ('open' == $post->ping_status) { ?>
  • trunk/wp-includes/template-functions.php

    r717 r720  
    17581758function comments_rss_link($link_text='Comments RSS', $commentsrssfilename = 'wp-commentsrss2.php') {
    17591759    global $id;
    1760     global $querystring_start, $querystring_equal, $querystring_separator;
    1761     $url = $commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id;
     1760    global $querystring_start, $querystring_equal, $querystring_separator, $siteurl;
     1761    $url = $siteurl.'/'.$commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id;
    17621762    $url = '<a href="'.$url.'">'.$link_text.'</a>';
    17631763    echo $url;
Note: See TracChangeset for help on using the changeset viewer.