Remove plugin-install from site admin for is_multisite(). See #14435

git-svn-id: https://develop.svn.wordpress.org/trunk@16815 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pete Mall 2010-12-08 20:11:52 +00:00
parent 596471065a
commit cfe4cf192b

View File

@ -169,11 +169,12 @@ if ( is_super_admin() || ( is_multisite() && isset($menu_perms['plugins']) && $m
if ( is_multisite() ) if ( is_multisite() )
$count = ''; $count = '';
$menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' ); $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' ); if ( ! is_multisite() ) {
/* translators: add new plugin */ /* translators: add new plugin */
$submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php'); $submenu['plugins.php'][5] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
if ( ! is_multisite() ) $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' ); $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
}
} }
unset($menu_perms, $update_plugins, $update_count); unset($menu_perms, $update_plugins, $update_count);