mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
Do over to avoid write context warning.
git-svn-id: https://develop.svn.wordpress.org/trunk@2892 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6f97a857a6
commit
0be98daf26
@ -724,10 +724,11 @@ class retrospam_mgr {
|
||||
foreach( $this->comment_list as $comment ) {
|
||||
if( $comment->approved == 1 ) {
|
||||
foreach( $this->spam_words as $word ) {
|
||||
if ( empty( trim($word) ) )
|
||||
$word = trim($word);
|
||||
if ( empty( $word ) )
|
||||
continue;
|
||||
$fulltext = strtolower($comment->email.' '.$comment->url.' '.$comment->ip.' '.$comment->text);
|
||||
if( strpos( $fulltext, strtolower(trim($word)) ) != FALSE ) {
|
||||
if( strpos( $fulltext, strtolower($word) ) != FALSE ) {
|
||||
$this->found_comments[] = $comment->ID;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user