Changeset 48766
- Timestamp:
- 08/09/2020 01:54:28 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r48764 r48766 1983 1983 foreach ( $submenu[ $parent ] as $submenu_array ) { 1984 1984 if ( isset( $plugin_page ) 1985 && ( $plugin_page === $submenu_array[2] )1985 && $plugin_page === $submenu_array[2] 1986 1986 && ( $pagenow === $parent 1987 1987 || $plugin_page === $parent … … 2139 2139 } 2140 2140 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 ] ) ) { 2142 2142 return false; 2143 2143 } … … 2145 2145 if ( isset( $submenu[ $parent ] ) ) { 2146 2146 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 ) { 2148 2148 return current_user_can( $submenu_array[1] ); 2149 2149 } elseif ( $submenu_array[2] === $pagenow ) {
Note: See TracChangeset
for help on using the changeset viewer.