From 204acb04ae0c1e77b4088709aab345a94412cc2b Mon Sep 17 00:00:00 2001 From: rboren Date: Mon, 20 Dec 2004 06:45:19 +0000 Subject: [PATCH] Fix required fields checking. Bug 576. Hat tip: bronski git-svn-id: http://svn.automattic.com/wordpress/trunk@1985 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-comments-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-comments-post.php b/wp-comments-post.php index f7f20ba1e..9a1ff1f45 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -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 )