Changeset 2891

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

Trim spaw words before checking for empty. Props markjaquith. fixes #1653

Files:

Legend:

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

    r2885 r2891  
    725725            if( $comment->approved == 1 ) { 
    726726                foreach( $this->spam_words as $word ) { 
    727                     if ( empty( $word ) ) 
     727                    if ( empty( trim($word) ) ) 
    728728                        continue; 
    729729                    $fulltext = strtolower($comment->email.' '.$comment->url.' '.$comment->ip.' '.$comment->text);