Make WordPress Core

Changeset 12614


Ignore:
Timestamp:
01/06/2010 11:48:46 PM (15 years ago)
Author:
ryan
Message:

Show theme installer only to super admins. Props Denis-de-Bernardy. see #11763

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r12613 r12614  
    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' );
Note: See TracChangeset for help on using the changeset viewer.