Changeset 1985

Show
Ignore:
Timestamp:
12/20/04 06:45:19 (4 years ago)
Author:
rboren
Message:

Fix required fields checking. Bug 576. Hat tip: bronski

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-comments-post.php

    r1983 r1985  
    2323$user_ip    = apply_filters('pre_comment_user_ip', $_SERVER['REMOTE_ADDR']); 
    2424 
    25 if ( get_settings('require_name_email') && ('' == $email || '' == $author) ) 
     25if ( get_settings('require_name_email') && ('' == $comment_author_email || '' == $comment_author) ) 
    2626    die( __('Error: please fill the required fields (name, email).') ); 
    2727