wfw:commentRSS and E_ALL fix to blog-header.

git-svn-id: https://develop.svn.wordpress.org/trunk@1255 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-05-10 07:51:50 +00:00
parent 372e3293f4
commit cc29f6be5e
3 changed files with 15 additions and 7 deletions
+7 -3
View File
@@ -216,16 +216,20 @@ function comment_time($d='') {
}
function comments_rss_link($link_text='Comments RSS', $commentsrssfilename = 'wp-commentsrss2.php') {
$url = comments_rss($commentsrssfilename);
echo "<a href='$url'>$link_text</a>";
}
function comments_rss($commentsrssfilename = 'wp-commentsrss2.php') {
global $id;
global $querystring_start, $querystring_equal, $querystring_separator;
if ('' != get_settings('permalink_structure')) {
$url = trailingslashit(get_permalink()) . 'rss2/';
$url = trailingslashit(get_permalink()) . 'feed/';
} else {
$url = get_settings('siteurl') . '/' . $commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id;
}
echo "<a href='$url'>$link_text</a>";
return $url;
}
function comment_author_rss() {