Changeset 2464
- Timestamp:
- 03/22/05 00:29:43 (4 years ago)
- Files:
-
- trunk/wp-comments-post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-comments-post.php
r2436 r2464 32 32 $comment_type = ''; 33 33 34 if ( (get_settings('require_name_email') && !$user_ID) && ('' == $comment_author_email || '' == $comment_author) ) 35 die( __('Error: please fill the required fields (name, email).') ); 34 if ( get_settings('require_name_email') && !$user_ID ) { 35 if ('' == $comment_author_email || '' == $comment_author) 36 die( __('Error: please fill the required fields (name, email).') ); 37 elseif ( !is_email($comment_author_email)) 38 die( __('Error: please enter a valid email address.') ); 39 } 36 40 37 41 if ( '' == $comment_content )
