WordPress.org

Make WordPress Core

Changeset 48766


Ignore:
Timestamp:
08/09/2020 01:54:28 AM (6 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove a few more extra brackets from some conditions in wp-admin/includes/plugin.php.

Follow-up to [48764].

See #50767.

File:
1 edited

Legend:

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

    r48764 r48766  
    19831983            foreach ( $submenu[ $parent ] as $submenu_array ) {
    19841984                if ( isset( $plugin_page )
    1985                     && ( $plugin_page === $submenu_array[2] )
     1985                    && $plugin_page === $submenu_array[2]
    19861986                    && ( $pagenow === $parent
    19871987                        || $plugin_page === $parent
     
    21392139    }
    21402140
    2141     if ( isset( $plugin_page ) && ( $plugin_page === $parent ) && isset( $_wp_menu_nopriv[ $plugin_page ] ) ) {
     2141    if ( isset( $plugin_page ) && $plugin_page === $parent && isset( $_wp_menu_nopriv[ $plugin_page ] ) ) {
    21422142        return false;
    21432143    }
     
    21452145    if ( isset( $submenu[ $parent ] ) ) {
    21462146        foreach ( $submenu[ $parent ] as $submenu_array ) {
    2147             if ( isset( $plugin_page ) && ( $submenu_array[2] === $plugin_page ) ) {
     2147            if ( isset( $plugin_page ) && $submenu_array[2] === $plugin_page ) {
    21482148                return current_user_can( $submenu_array[1] );
    21492149            } elseif ( $submenu_array[2] === $pagenow ) {
Note: See TracChangeset for help on using the changeset viewer.