Make WordPress Core


Ignore:
Timestamp:
01/08/2015 07:04:40 AM (9 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/wp-db.php

    r31051 r31090  
    13671367                mysqli_next_result( $this->dbh );
    13681368            }
    1369         } else if ( is_resource( $this->result ) ) {
     1369        } elseif ( is_resource( $this->result ) ) {
    13701370            mysql_free_result( $this->result );
    13711371        }
     
    14361436                if ( $this->has_connected ) {
    14371437                    $attempt_fallback = false;
    1438                 } else if ( defined( 'WP_USE_EXT_MYSQL' ) && ! WP_USE_EXT_MYSQL ) {
     1438                } elseif ( defined( 'WP_USE_EXT_MYSQL' ) && ! WP_USE_EXT_MYSQL ) {
    14391439                    $attempt_fallback = false;
    1440                 } else if ( ! function_exists( 'mysql_connect' ) ) {
     1440                } elseif ( ! function_exists( 'mysql_connect' ) ) {
    14411441                    $attempt_fallback = false;
    14421442                }
     
    14761476
    14771477            return false;
    1478         } else if ( $this->dbh ) {
     1478        } elseif ( $this->dbh ) {
    14791479            $this->has_connected = true;
    14801480            $this->set_charset( $this->dbh );
     
    16741674                    $num_rows++;
    16751675                }
    1676             } else if ( is_resource( $this->result ) ) {
     1676            } elseif ( is_resource( $this->result ) ) {
    16771677                while ( $row = @mysql_fetch_object( $this->result ) ) {
    16781678                    $this->last_result[$num_rows] = $row;
Note: See TracChangeset for help on using the changeset viewer.