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. Built from https://develop.svn.wordpress.org/trunk@31090 git-svn-id: http://core.svn.wordpress.org/trunk@31071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -167,12 +167,13 @@ if ( isset($plugin_page) ) {
|
||||
}
|
||||
|
||||
$hook_suffix = '';
|
||||
if ( isset($page_hook) )
|
||||
if ( isset( $page_hook ) ) {
|
||||
$hook_suffix = $page_hook;
|
||||
else if ( isset($plugin_page) )
|
||||
} elseif ( isset( $plugin_page ) ) {
|
||||
$hook_suffix = $plugin_page;
|
||||
else if ( isset($pagenow) )
|
||||
} elseif ( isset( $pagenow ) ) {
|
||||
$hook_suffix = $pagenow;
|
||||
}
|
||||
|
||||
set_current_screen();
|
||||
|
||||
@@ -243,7 +244,7 @@ if ( isset($plugin_page) ) {
|
||||
include(ABSPATH . 'wp-admin/admin-footer.php');
|
||||
|
||||
exit();
|
||||
} else if (isset($_GET['import'])) {
|
||||
} elseif ( isset( $_GET['import'] ) ) {
|
||||
|
||||
$importer = $_GET['import'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user