diff --git a/src/wp-admin/includes/menu.php b/src/wp-admin/includes/menu.php
index cb6111a..d086a76 100644
a
|
b
|
if ( !empty( $menu ) && 'wp-menu-separator' == $menu[ $last_menu_key ][ 4 ] ) |
307 | 307 | unset( $menu[ $last_menu_key ] ); |
308 | 308 | unset( $last_menu_key ); |
309 | 309 | |
310 | | if ( !user_can_access_admin_page() ) { |
311 | | |
312 | | /** |
313 | | * Fires when access to an admin page is denied. |
314 | | * |
315 | | * @since 2.5.0 |
316 | | */ |
317 | | do_action( 'admin_page_access_denied' ); |
318 | | |
319 | | wp_die( __( 'You do not have sufficient permissions to access this page.' ), 403 ); |
320 | | } |
321 | | |
322 | 310 | $menu = add_menu_classes($menu); |
diff --git a/src/wp-admin/plugin-install.php b/src/wp-admin/plugin-install.php
index 03085c7..a124221 100644
a
|
b
|
if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-informat |
14 | 14 | */ |
15 | 15 | require_once( dirname( __FILE__ ) . '/admin.php' ); |
16 | 16 | |
17 | | if ( ! current_user_can('install_plugins') ) |
18 | | wp_die(__('You do not have sufficient permissions to install plugins on this site.')); |
| 17 | if ( ! ( isset( $_GET['tab'] ) && $_GET['tab'] == 'plugin-information' ) ) { |
| 18 | if ( ! current_user_can('install_plugins') ) |
| 19 | wp_die(__('You do not have sufficient permissions to install plugins on this site.')); |
| 20 | } |
19 | 21 | |
20 | 22 | if ( is_multisite() && ! is_network_admin() ) { |
21 | 23 | wp_redirect( network_admin_url( 'plugin-install.php' ) ); |