X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/af50974463450c98503e763a7836a50e260461a9..c46e6dd20c438dddfea40c35935b877ac3e67daa:/wp-comments-post.php
diff --git a/wp-comments-post.php b/wp-comments-post.php
index b1612d2f..e1e41720 100644
--- a/wp-comments-post.php
+++ b/wp-comments-post.php
@@ -121,7 +121,7 @@ $comment_type = '';
if ( get_option('require_name_email') && !$user->exists() ) {
if ( 6 > strlen( $comment_author_email ) || '' == $comment_author ) {
wp_die( __( 'ERROR: please fill the required fields (name, email).' ), 200 );
- } else if ( ! is_email( $comment_author_email ) ) {
+ } elseif ( ! is_email( $comment_author_email ) ) {
wp_die( __( 'ERROR: please enter a valid email address.' ), 200 );
}
}