using the comments_link_rss function

git-svn-id: http://svn.automattic.com/wordpress/trunk@720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-01-05 03:14:12 +00:00
parent db3c4bd654
commit 588615970e
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@
<h2 id="comments">Comments</h2>
<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>
<p><?php comments_rss_link('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></p>
<?php if ('open' == $post->ping_status) { ?>
<p>The <acronym title="Uniform Resource Identifier">URI</acronym> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>

View File

@ -1757,8 +1757,8 @@ function comment_time($d='') {
function comments_rss_link($link_text='Comments RSS', $commentsrssfilename = 'wp-commentsrss2.php') {
global $id;
global $querystring_start, $querystring_equal, $querystring_separator;
$url = $commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id;
global $querystring_start, $querystring_equal, $querystring_separator, $siteurl;
$url = $siteurl.'/'.$commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id;
$url = '<a href="'.$url.'">'.$link_text.'</a>';
echo $url;
}