Fix required fields checking. Bug 576. Hat tip: bronski
git-svn-id: https://develop.svn.wordpress.org/trunk@1985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4dd9d7eebb
commit
db217dd174
@ -22,7 +22,7 @@ $comment_type = '';
|
||||
|
||||
$user_ip = apply_filters('pre_comment_user_ip', $_SERVER['REMOTE_ADDR']);
|
||||
|
||||
if ( get_settings('require_name_email') && ('' == $email || '' == $author) )
|
||||
if ( get_settings('require_name_email') && ('' == $comment_author_email || '' == $comment_author) )
|
||||
die( __('Error: please fill the required fields (name, email).') );
|
||||
|
||||
if ( '' == $comment_content )
|
||||
|
Loading…
Reference in New Issue
Block a user