Make WordPress Core

Changeset 2891


Ignore:
Timestamp:
09/19/2005 02:17:41 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.