]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-comments-post.php
WordPress 4.2.3-scripts
[autoinstalls/wordpress.git] / wp-comments-post.php
index b1612d2f7d476c0fd71494c5a5ed05fec996cb01..e1e41720a40d81e2bf6c5d2d958a2ef39996d690 100644 (file)
@@ -121,7 +121,7 @@ $comment_type = '';
 if ( get_option('require_name_email') && !$user->exists() ) {
        if ( 6 > strlen( $comment_author_email ) || '' == $comment_author ) {
                wp_die( __( '<strong>ERROR</strong>: please fill the required fields (name, email).' ), 200 );
-       } else if ( ! is_email( $comment_author_email ) ) {
+       } elseif ( ! is_email( $comment_author_email ) ) {
                wp_die( __( '<strong>ERROR</strong>: please enter a valid email address.' ), 200 );
        }
 }