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) { ?>