mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
The keyword elseif should be used instead of else if so that all control keywords look like single words.
This was a mess, is now standardized across the codebase, except for a few 3rd-party libs. See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user