WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/08/2015 07:04:40 AM (6 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-comments-post.php

    r30579 r31090  
    122122    if ( 6 > strlen( $comment_author_email ) || '' == $comment_author ) {
    123123        wp_die( __( '<strong>ERROR</strong>: please fill the required fields (name, email).' ), 200 );
    124     } else if ( ! is_email( $comment_author_email ) ) {
     124    } elseif ( ! is_email( $comment_author_email ) ) {
    125125        wp_die( __( '<strong>ERROR</strong>: please enter a valid email address.' ), 200 );
    126126    }
Note: See TracChangeset for help on using the changeset viewer.