In `wp-includes/plugin.php`, collapse 3 `else-newline-tab-if` statements.
See #30799. Built from https://develop.svn.wordpress.org/trunk@31091 git-svn-id: http://core.svn.wordpress.org/trunk@31072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
60b0cd7943
commit
383a5c6c24
|
@ -1542,11 +1542,10 @@ function get_admin_page_parent( $parent = '' ) {
|
|||
} elseif ( $submenu_array[2] == $pagenow && empty($typenow) && ( empty($parent_file) || false === strpos($parent_file, '?') ) ) {
|
||||
$parent_file = $parent;
|
||||
return $parent;
|
||||
} else
|
||||
if ( isset( $plugin_page ) && ($plugin_page == $submenu_array[2] ) ) {
|
||||
$parent_file = $parent;
|
||||
return $parent;
|
||||
}
|
||||
} elseif ( isset( $plugin_page ) && ($plugin_page == $submenu_array[2] ) ) {
|
||||
$parent_file = $parent;
|
||||
return $parent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1576,11 +1575,10 @@ function get_admin_page_title() {
|
|||
if ( $menu_array[2] == $pagenow ) {
|
||||
$title = $menu_array[3];
|
||||
return $menu_array[3];
|
||||
} else
|
||||
if ( isset( $plugin_page ) && ($plugin_page == $menu_array[2] ) && ($hook == $menu_array[3] ) ) {
|
||||
$title = $menu_array[3];
|
||||
return $menu_array[3];
|
||||
}
|
||||
} elseif ( isset( $plugin_page ) && ($plugin_page == $menu_array[2] ) && ($hook == $menu_array[3] ) ) {
|
||||
$title = $menu_array[3];
|
||||
return $menu_array[3];
|
||||
}
|
||||
} else {
|
||||
$title = $menu_array[0];
|
||||
return $title;
|
||||
|
@ -1647,11 +1645,11 @@ function get_plugin_page_hookname( $plugin_page, $parent_page ) {
|
|||
|
||||
$page_type = 'admin';
|
||||
if ( empty ( $parent_page ) || 'admin.php' == $parent_page || isset( $admin_page_hooks[$plugin_page] ) ) {
|
||||
if ( isset( $admin_page_hooks[$plugin_page] ) )
|
||||
if ( isset( $admin_page_hooks[$plugin_page] ) ) {
|
||||
$page_type = 'toplevel';
|
||||
else
|
||||
if ( isset( $admin_page_hooks[$parent] ))
|
||||
$page_type = $admin_page_hooks[$parent];
|
||||
} elseif ( isset( $admin_page_hooks[$parent] )) {
|
||||
$page_type = $admin_page_hooks[$parent];
|
||||
}
|
||||
} elseif ( isset( $admin_page_hooks[$parent] ) ) {
|
||||
$page_type = $admin_page_hooks[$parent];
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31090';
|
||||
$wp_version = '4.2-alpha-31091';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue