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-admin/includes/class-wp-importer.php

    r29707 r31090  
    274274
    275275            $last_arg = $key;
    276         } else if ( (bool) preg_match( "/^-([a-zA-Z0-9]+)/", $args[$i], $match ) ) {
     276        } elseif ( (bool) preg_match( "/^-([a-zA-Z0-9]+)/", $args[$i], $match ) ) {
    277277            for ( $j = 0, $jl = strlen( $match[1] ); $j < $jl; $j++ ) {
    278278                $key = $match[1]{$j};
     
    281281
    282282            $last_arg = $key;
    283         } else if ( $last_arg !== null ) {
     283        } elseif ( $last_arg !== null ) {
    284284            $out[$last_arg] = $args[$i];
    285285        }
Note: See TracChangeset for help on using the changeset viewer.