Make WordPress Core


Ignore:
Timestamp:
01/08/2015 07:04:40 AM (11 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-includes/comment.php

    r31015 r31090  
    507507        if ( in_array( $this->query_vars['orderby'], array( 'none', array(), false ), true ) ) {
    508508            $orderby = '';
    509         } else if ( ! empty( $this->query_vars['orderby'] ) ) {
     509        } elseif ( ! empty( $this->query_vars['orderby'] ) ) {
    510510            $ordersby = is_array( $this->query_vars['orderby'] ) ?
    511511                $this->query_vars['orderby'] :
     
    22292229    if ( ! isset( $data['comment_approved'] ) ) {
    22302230        $data['comment_approved'] = 1;
    2231     } else if ( 'hold' == $data['comment_approved'] ) {
     2231    } elseif ( 'hold' == $data['comment_approved'] ) {
    22322232        $data['comment_approved'] = 0;
    2233     } else if ( 'approve' == $data['comment_approved'] ) {
     2233    } elseif ( 'approve' == $data['comment_approved'] ) {
    22342234        $data['comment_approved'] = 1;
    22352235    }
Note: See TracChangeset for help on using the changeset viewer.