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/plugin.php

    r31008 r31090  
    16531653            if ( isset( $admin_page_hooks[$parent] ))
    16541654                $page_type = $admin_page_hooks[$parent];
    1655     } else if ( isset( $admin_page_hooks[$parent] ) ) {
     1655    } elseif ( isset( $admin_page_hooks[$parent] ) ) {
    16561656        $page_type = $admin_page_hooks[$parent];
    16571657    }
     
    17141714                else
    17151715                    return false;
    1716             } else if ( $submenu_array[2] == $pagenow ) {
     1716            } elseif ( $submenu_array[2] == $pagenow ) {
    17171717                if ( current_user_can( $submenu_array[1] ))
    17181718                    return true;
Note: See TracChangeset for help on using the changeset viewer.