[wp-cvs] wordpress/wp-admin edit-comments.php,1.43,1.44

Matthew Mullenweg saxmatt at users.sourceforge.net
Mon Jan 17 23:32:23 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10297/wp-admin

Modified Files:
	edit-comments.php 
Log Message:
Don't show spam comments in search results.

Index: edit-comments.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit-comments.php,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** edit-comments.php	10 Jan 2005 20:21:04 -0000	1.43
--- edit-comments.php	17 Jan 2005 23:32:20 -0000	1.44
***************
*** 55,63 ****
  	$s = $wpdb->escape($_GET['s']);
  	$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments  WHERE
! 		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%')
  		ORDER BY comment_date DESC");
  } else {
--- 55,64 ----
  	$s = $wpdb->escape($_GET['s']);
  	$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments  WHERE
! 		(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%') ) AND
! 		comment_approved != 'spam'
  		ORDER BY comment_date DESC");
  } else {



More information about the cvs mailing list