Changeset 2892

Show
Ignore:
Timestamp:
09/19/05 02:49:53 (3 years ago)
Author:
ryan
Message:

Do over to avoid write context warning.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/classes.php

    r2891 r2892  
    725725            if( $comment->approved == 1 ) { 
    726726                foreach( $this->spam_words as $word ) { 
    727                     if ( empty( trim($word) ) ) 
     727                    $word = trim($word); 
     728                    if ( empty( $word ) ) 
    728729                        continue; 
    729730                    $fulltext = strtolower($comment->email.' '.$comment->url.' '.$comment->ip.' '.$comment->text); 
    730                     if( strpos( $fulltext, strtolower(trim($word)) ) != FALSE ) { 
     731                    if( strpos( $fulltext, strtolower($word) ) != FALSE ) { 
    731732                        $this->found_comments[] = $comment->ID; 
    732733                        break;