git-svn-id: https://develop.svn.wordpress.org/trunk@2167 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f6a27d19b0
commit
e73cfeddd5
@ -47,9 +47,9 @@ if ($posts) { foreach ($posts as $post) { start_wp();
|
|||||||
?>
|
?>
|
||||||
<item>
|
<item>
|
||||||
<title>by: <?php comment_author_rss() ?></title>
|
<title>by: <?php comment_author_rss() ?></title>
|
||||||
<link><?php comment_link_rss() ?></link>
|
<link><?php comment_link() ?></link>
|
||||||
<pubDate><?php comment_time('r'); ?></pubDate>
|
<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
|
<?php
|
||||||
if (!empty($comment->post_password) && $_COOKIE['wp-postpass'] != $comment->post_password) {
|
if (!empty($comment->post_password) && $_COOKIE['wp-postpass'] != $comment->post_password) {
|
||||||
?>
|
?>
|
||||||
|
@ -64,6 +64,11 @@ function get_comments_link() {
|
|||||||
return get_permalink() . '#comments';
|
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 ) {
|
function comments_link( $file = '', $echo = true ) {
|
||||||
echo get_comments_link();
|
echo get_comments_link();
|
||||||
}
|
}
|
||||||
|
@ -54,8 +54,8 @@ function permalink_single_rss($file = '') {
|
|||||||
echo get_permalink();
|
echo get_permalink();
|
||||||
}
|
}
|
||||||
|
|
||||||
function comment_link_rss() {
|
function comment_link() {
|
||||||
echo get_comments_link();
|
echo get_comment_link();
|
||||||
}
|
}
|
||||||
|
|
||||||
function comment_author_rss() {
|
function comment_author_rss() {
|
||||||
|
@ -1668,4 +1668,4 @@ function wp_clearcookie() {
|
|||||||
setcookie('wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, SITECOOKIEPATH);
|
setcookie('wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, SITECOOKIEPATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user