diff --git src/wp-admin/menu.php src/wp-admin/menu.php
index ba14a09..38bc36b 100644
|
|
$submenu['plugins.php'][5] = array( __('Installed Plugins'), 'activate_plugins' |
192 | 192 | |
193 | 193 | if ( ! is_multisite() ) { |
194 | 194 | /* translators: add new plugin */ |
195 | | $submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' ); |
196 | | $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); |
| 195 | $submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'update_plugins', 'plugin-install.php' ); |
| 196 | $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'update_plugins', 'plugin-editor.php' ); |
197 | 197 | } |
198 | 198 | |
199 | 199 | unset( $update_data ); |
diff --git src/wp-admin/plugin-install.php src/wp-admin/plugin-install.php
index 03085c7..a124221 100644
|
|
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' ) ); |