From c1a3f8b7a93cba95eee6dfefeb93a00f0df8a1f9 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 3 Feb 2005 19:13:11 +0000 Subject: [PATCH] Don't show spam in list git-svn-id: https://develop.svn.wordpress.org/trunk@2211 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 3785ee649c..596f80eb4f 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 ORDER BY comment_date"); + $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_status != 'spam' ORDER BY comment_date"); if ($comments) { ?>