From 87f10408a56e0423d4511bc74b0f0fb9cce0b336 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 11 Mar 2005 03:31:39 +0000 Subject: [PATCH] Don't require email address from registered authors. http://mosquito.wordpress.org/view.php?id=948 Props: michel_v git-svn-id: https://develop.svn.wordpress.org/trunk@2431 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 3bebc15b67..f0ce7f74bc 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -31,7 +31,7 @@ endif; $comment_type = ''; -if ( get_settings('require_name_email') && ('' == $comment_author_email || '' == $comment_author) ) +if ( (get_settings('require_name_email') && !$user_ID) && ('' == $comment_author_email || '' == $comment_author) ) die( __('Error: please fill the required fields (name, email).') ); if ( '' == $comment_content )