From dc1767afe46f2164b4a48adfc46be2a59313b367 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 5 Feb 2005 18:32:57 +0000 Subject: [PATCH] s/comment_status/comment_approved/. Bug 807. Hat tip: gbhugo. git-svn-id: https://develop.svn.wordpress.org/trunk@2224 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 596f80eb4f..a76a0cae13 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -167,7 +167,7 @@ $class = ('alternate' == $class) ? '' : 'alternate'; get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_status != 'spam' ORDER BY comment_date"); + $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date"); if ($comments) { ?>