From 8e960566a901f2ab8dfa3b9b9926499c99b62355 Mon Sep 17 00:00:00 2001 From: rboren Date: Fri, 11 Feb 2005 01:09:34 +0000 Subject: [PATCH] Allow comments feeds for pages. Use new post loop. http://mosquito.wordpress.org/view.php?id=846 git-svn-id: http://svn.automattic.com/wordpress/trunk@2251 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-commentsrss2.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-commentsrss2.php b/wp-commentsrss2.php index 0594c1aff..8157f37c8 100644 --- a/wp-commentsrss2.php +++ b/wp-commentsrss2.php @@ -14,18 +14,19 @@ echo ''; - <?php if (is_single()) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?> + <?php if (is_single() || is_page()) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?> http://wordpress.org/?v= get_results("SELECT comment_ID, comment_author, comment_author_email, comment_author_url, comment_date, comment_content, comment_post_ID, $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments @@ -68,7 +69,7 @@ if ($posts) { foreach ($posts as $post) { start_wp(); } } } -} } +endwhile; endif; ?>