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:
Gary Pendergast 2019-01-15 05:47:04 +00:00
parent da17f41cc1
commit bb59882be8
1 changed files with 3 additions and 1 deletions

View File

@ -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().