Coding Standards: Move an assignment out of a condition in wp-admin/admin.php
.
Props subrataemfluence, jrf, pento. Fixes #44363. git-svn-id: https://develop.svn.wordpress.org/trunk@44598 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
da17f41cc1
commit
bb59882be8
@ -174,7 +174,9 @@ if ( isset( $plugin_page ) ) {
|
||||
} else {
|
||||
$the_parent = $pagenow;
|
||||
}
|
||||
if ( ! $page_hook = get_plugin_page_hook( $plugin_page, $the_parent ) ) {
|
||||
|
||||
$page_hook = get_plugin_page_hook( $plugin_page, $the_parent );
|
||||
if ( ! $page_hook ) {
|
||||
$page_hook = get_plugin_page_hook( $plugin_page, $plugin_page );
|
||||
|
||||
// Back-compat for plugins using add_management_page().
|
||||
|
Loading…
Reference in New Issue
Block a user