mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Do over to avoid write context warning.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cf9735284d
commit
e0bffdaf03
@ -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…
Reference in New Issue
Block a user