Make WordPress Core

Ticket #11763: 11763.diff

File 11763.diff, 686 bytes (added by Denis-de-Bernardy, 15 years ago)
  • wp-admin/menu.php

     
    101101        $submenu['themes.php'][5]  = array(__('Themes'), 'switch_themes', 'themes.php');
    102102        if ( !is_multisite() )
    103103                $submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php');
    104         $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
     104        if ( is_super_admin() )
     105                $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
    105106
    106107$update_plugins = get_transient( 'update_plugins' );
    107108$update_count = 0;