From ee7b57220277011d8b6dc5c0232e2a1df7a363c4 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 15 Dec 2005 22:20:06 +0000 Subject: [PATCH] Add post titles to site comment feed. Add some gettext. fixes #2067 #1987 git-svn-id: http://svn.automattic.com/wordpress/trunk@3314 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-commentsrss2.php | 13 ++++++++++--- wp-includes/feed-functions.php | 14 ++++++++++---- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/wp-commentsrss2.php b/wp-commentsrss2.php index 8de760d5c..caddaa055 100644 --- a/wp-commentsrss2.php +++ b/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. + ]]>