From 93ac629632fe4f1861d266f9ddfdbe6018e4d5b2 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@2251 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-commentsrss2.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-commentsrss2.php b/wp-commentsrss2.php index 0594c1affb..8157f37c8e 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; ?>