Ticket #11763: 11763.diff

File 11763.diff, 686 bytes (added by Denis-de-Bernardy, 3 years ago)
Line 
1Index: wp-admin/menu.php
2===================================================================
3--- wp-admin/menu.php   (revision 12613)
4+++ wp-admin/menu.php   (working copy)
5@@ -101,7 +101,8 @@
6        $submenu['themes.php'][5]  = array(__('Themes'), 'switch_themes', 'themes.php');
7        if ( !is_multisite() )
8                $submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php');
9-       $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
10+       if ( is_super_admin() )
11+               $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
12 
13 $update_plugins = get_transient( 'update_plugins' );
14 $update_count = 0;