git-svn-id: http://svn.automattic.com/wordpress/trunk@2167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-01-31 10:06:12 +00:00
parent c4649b9979
commit e2e1028be1
4 changed files with 10 additions and 5 deletions

View File

@ -47,9 +47,9 @@ if ($posts) { foreach ($posts as $post) { start_wp();
?>
<item>
<title>by: <?php comment_author_rss() ?></title>
<link><?php comment_link_rss() ?></link>
<link><?php comment_link() ?></link>
<pubDate><?php comment_time('r'); ?></pubDate>
<guid isPermaLink="false"><?php comment_ID(); echo ":".$comment->comment_post_ID; ?>@<?php bloginfo_rss("url") ?></guid>
<guid><?php comment_link() ?></guid>
<?php
if (!empty($comment->post_password) && $_COOKIE['wp-postpass'] != $comment->post_password) {
?>

View File

@ -64,6 +64,11 @@ function get_comments_link() {
return get_permalink() . '#comments';
}
function get_comment_link() {
global $comment;
return get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID;
}
function comments_link( $file = '', $echo = true ) {
echo get_comments_link();
}

View File

@ -54,8 +54,8 @@ function permalink_single_rss($file = '') {
echo get_permalink();
}
function comment_link_rss() {
echo get_comments_link();
function comment_link() {
echo get_comment_link();
}
function comment_author_rss() {