Make WordPress Core


Ignore:
Timestamp:
01/15/2019 05:47:04 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Move an assignment out of a condition in wp-admin/admin.php.

Props subrataemfluence, jrf, pento.
Fixes #44363.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin.php

    r44501 r44598  
    175175        $the_parent = $pagenow;
    176176    }
    177     if ( ! $page_hook = get_plugin_page_hook( $plugin_page, $the_parent ) ) {
     177
     178    $page_hook = get_plugin_page_hook( $plugin_page, $the_parent );
     179    if ( ! $page_hook ) {
    178180        $page_hook = get_plugin_page_hook( $plugin_page, $plugin_page );
    179181
Note: See TracChangeset for help on using the changeset viewer.