git-svn-id: https://develop.svn.wordpress.org/trunk@2261 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
635b80fe4b
commit
68c44682ba
|
@ -679,6 +679,8 @@ class retrospam_mgr {
|
||||||
foreach( $this->comment_list as $comment ) {
|
foreach( $this->comment_list as $comment ) {
|
||||||
if( $comment->approved == 1 ) {
|
if( $comment->approved == 1 ) {
|
||||||
foreach( $this->spam_words as $word ) {
|
foreach( $this->spam_words as $word ) {
|
||||||
|
if ( empty( $word ) )
|
||||||
|
continue;
|
||||||
$fulltext = strtolower($comment->email.' '.$comment->url.' '.$comment->ip.' '.$comment->text);
|
$fulltext = strtolower($comment->email.' '.$comment->url.' '.$comment->ip.' '.$comment->text);
|
||||||
if( strpos( $fulltext, strtolower(trim($word)) ) != FALSE ) {
|
if( strpos( $fulltext, strtolower(trim($word)) ) != FALSE ) {
|
||||||
$this->found_comments[] = $comment->ID;
|
$this->found_comments[] = $comment->ID;
|
||||||
|
|
Loading…
Reference in New Issue