From 0ad4b94b5dd2bdbac3314f7e2e8a8d9815935dfe Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 16 Dec 2005 10:28:20 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@472 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-commentsrss2.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'wp-inst/wp-commentsrss2.php') diff --git a/wp-inst/wp-commentsrss2.php b/wp-inst/wp-commentsrss2.php index 8de760d..caddaa0 100644 --- a/wp-inst/wp-commentsrss2.php +++ b/wp-inst/wp-commentsrss2.php @@ -20,7 +20,7 @@ if (have_posts()) : if ($i < 1) { $i++; ?> - <?php if (is_single() || is_page()) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?> + <?php if (is_single() || is_page() ) { printf(__('Comments on: %s'), get_the_title_rss()); } else { printf(__('Comments for %s'), get_bloginfo_rss("name")); } ?> @@ -51,14 +51,21 @@ if (have_posts()) : get_post_custom($comment->comment_post_ID); ?> - by: <?php comment_author_rss() ?> + <?php if ( ! (is_single() || is_page()) ) { + $title = get_the_title($comment->comment_post_ID); + $title = apply_filters('the_title', $title); + $title = apply_filters('the_title_rss', $title); + printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss()); + } else { + printf(__('by: %s'), get_comment_author_rss()); + } ?> post_password) && $_COOKIE['wp-postpass'] != $comment->post_password) { ?> - Protected Comments: Please enter your password to view comments. + ]]>