From 3b4c235c3f03fd7c608717855b8726fab9c78ed6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 6 Jan 2010 23:48:46 +0000 Subject: [PATCH] Show theme installer only to super admins. Props Denis-de-Bernardy. see #11763 git-svn-id: https://develop.svn.wordpress.org/trunk@12614 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/menu.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index e626bd6694..1fdb4c58b6 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -101,7 +101,8 @@ $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'); - $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php'); + if ( is_super_admin() ) + $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php'); $update_plugins = get_transient( 'update_plugins' ); $update_count = 0;