From bcd3b81c50592f8bd77cbb3f439e9ac00f330b63 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 17 Jan 2005 23:32:20 +0000 Subject: [PATCH] Don't show spam comments in search results. git-svn-id: https://develop.svn.wordpress.org/trunk@2100 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-comments.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index bf5d5b41d3..2a4b3dd70f 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -54,11 +54,12 @@ endif; if (isset($_GET['s'])) { $s = $wpdb->escape($_GET['s']); $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE - comment_author LIKE '%$s%' OR + (comment_author LIKE '%$s%' OR comment_author_email LIKE '%$s%' OR comment_author_url LIKE ('%$s%') OR comment_author_IP LIKE ('%$s%') OR - comment_content LIKE ('%$s%') + comment_content LIKE ('%$s%') ) AND + comment_approved != 'spam' ORDER BY comment_date DESC"); } else { if ( isset($_GET['offset']) )