Line ending fixes and commenting cleanups from Scott Reilly

git-svn-id: https://develop.svn.wordpress.org/trunk@2556 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-04-20 03:37:23 +00:00
parent debd8e0e5f
commit 2e3c23045c
4 changed files with 282 additions and 277 deletions

View File

@@ -32,7 +32,7 @@ endif;
$comment_type = '';
if ( get_settings('require_name_email') && !$user_ID ) {
if ('' == $comment_author_email || '' == $comment_author)
if ( 7 > strlen($comment_author_email) || '' == $comment_author )
die( __('Error: please fill the required fields (name, email).') );
elseif ( !is_email($comment_author_email))
die( __('Error: please enter a valid email address.') );