Make WordPress Core


Ignore:
Timestamp:
12/05/2005 04:58:26 PM (19 years ago)
Author:
ryan
Message:

i18n fix from pandem. fixes #2028

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-functions.php

    r3271 r3272  
    865865        } elseif( $author != '' && $email != '' ) {
    866866            $ok_to_comment = $wpdb->get_var("SELECT comment_approved FROM $wpdb->comments WHERE comment_author = '$author' AND comment_author_email = '$email' and comment_approved = '1' LIMIT 1");
    867             if ( 1 == $ok_to_comment && false === strpos( $email, get_settings('moderation_keys')) )
    868                 return true;
     867            if ( ( 1 == $ok_to_comment ) &&
     868                ( empty($mod_keys) || false === strpos( $email, $mod_keys) ) )
     869                    return true;
    869870            else
    870871                return false;
Note: See TracChangeset for help on using the changeset viewer.