Show theme installer only to super admins. Props Denis-de-Bernardy. see #11763
git-svn-id: http://svn.automattic.com/wordpress/trunk@12614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fc23a88df8
commit
dafffcae58
|
@ -101,6 +101,7 @@ $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-to
|
|||
$submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php');
|
||||
if ( !is_multisite() )
|
||||
$submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php');
|
||||
if ( is_super_admin() )
|
||||
$submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
|
||||
|
||||
$update_plugins = get_transient( 'update_plugins' );
|
||||
|
|
Loading…
Reference in New Issue