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/menu-header.php

    r30393 r31090  
    175175                // If plugin_page is set the parent must either match the current page or not physically exist.
    176176                // This allows plugin pages with the same hook to exist under different parents.
    177                 } else if (
     177                } elseif (
    178178                    ( ! isset( $plugin_page ) && $self == $sub_item[2] ) ||
    179179                    ( isset( $plugin_page ) && $plugin_page == $sub_item[2] && ( $item[2] == $self_type || $item[2] == $self || file_exists($menu_file) === false ) )
Note: See TracChangeset for help on using the changeset viewer.