mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Remove plugin-install from site admin for is_multisite(). See #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@16815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
28f16ea431
commit
cab472f456
@ -169,11 +169,12 @@ if ( is_super_admin() || ( is_multisite() && isset($menu_perms['plugins']) && $m
|
||||
if ( is_multisite() )
|
||||
$count = '';
|
||||
$menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' );
|
||||
$submenu['plugins.php'][5] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
|
||||
/* translators: add new plugin */
|
||||
$submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php');
|
||||
if ( ! is_multisite() )
|
||||
if ( ! is_multisite() ) {
|
||||
/* translators: add new plugin */
|
||||
$submenu['plugins.php'][5] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
|
||||
$submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
|
||||
}
|
||||
}
|
||||
unset($menu_perms, $update_plugins, $update_count);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user