Make WordPress Core


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

    r31014 r31090  
    328328                if ( false === $priority ) {
    329329                        $wp_filter[ $tag ] = array();
    330                 } else if ( isset( $wp_filter[ $tag ][ $priority ] ) ) {
     330                } elseif ( isset( $wp_filter[ $tag ][ $priority ] ) ) {
    331331                        $wp_filter[ $tag ][ $priority ] = array();
    332332                }
    … …  
    901901                        return $obj_idx;
    902902                }
    903         } else if ( is_string($function[0]) ) {
     903        } elseif ( is_string( $function[0] ) ) {
    904904                // Static Calling
    905905                return $function[0] . '::' . $function[1];
Note: See TracChangeset for help on using the changeset viewer.