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

git-svn-id: http://svn.automattic.com/wordpress/trunk@1985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-12-20 06:45:19 +00:00
parent 02ea09c795
commit 204acb04ae
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ $comment_type = '';
$user_ip = apply_filters('pre_comment_user_ip', $_SERVER['REMOTE_ADDR']); $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).') ); die( __('Error: please fill the required fields (name, email).') );
if ( '' == $comment_content ) if ( '' == $comment_content )