Make WordPress Core


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

    r30649 r31090  
    168168
    169169$hook_suffix = '';
    170 if ( isset($page_hook) )
     170if ( isset( $page_hook ) ) {
    171171    $hook_suffix = $page_hook;
    172 else if ( isset($plugin_page) )
     172} elseif ( isset( $plugin_page ) ) {
    173173    $hook_suffix = $plugin_page;
    174 else if ( isset($pagenow) )
     174} elseif ( isset( $pagenow ) ) {
    175175    $hook_suffix = $pagenow;
     176}
    176177
    177178set_current_screen();
     
    244245
    245246    exit();
    246 } else if (isset($_GET['import'])) {
     247} elseif ( isset( $_GET['import'] ) ) {
    247248
    248249    $importer = $_GET['import'];
Note: See TracChangeset for help on using the changeset viewer.