git-svn-id: http://svn.automattic.com/wordpress/trunk@2261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-11 02:16:38 +00:00
parent 0e377a7ca7
commit 4ebdf7232c
1 changed files with 2 additions and 0 deletions

View File

@ -679,6 +679,8 @@ class retrospam_mgr {
foreach( $this->comment_list as $comment ) {
if( $comment->approved == 1 ) {
foreach( $this->spam_words as $word ) {
if ( empty( $word ) )
continue;
$fulltext = strtolower($comment->email.' '.$comment->url.' '.$comment->ip.' '.$comment->text);
if( strpos( $fulltext, strtolower(trim($word)) ) != FALSE ) {
$this->found_comments[] = $comment->ID;