From 10d39e20e157bb9368e239aa3acdf10104ba46c4 Mon Sep 17 00:00:00 2001 From: rboren Date: Sat, 5 Feb 2005 18:32:57 +0000 Subject: [PATCH] s/comment_status/comment_approved/. Bug 807. Hat tip: gbhugo. git-svn-id: http://svn.automattic.com/wordpress/trunk@2224 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 596f80eb4..a76a0cae1 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) { ?>