Make WordPress Core

Changeset 12984


Ignore:
Timestamp:
02/06/2010 06:49:11 AM (15 years ago)
Author:
dd32
Message:

Enable Plugin/Theme editor menu item for Super Admins. See #11644

File:
1 edited

Legend:

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

    r12960 r12984  
    104104$menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top', 'menu-appearance', 'div' );
    105105    $submenu['themes.php'][5]  = array(__('Themes'), 'switch_themes', 'themes.php');
    106     if ( !is_multisite() )
    107         $submenu['themes.php'][10] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
     106    $submenu['themes.php'][10] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
    108107    $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
    109108
     
    119118        /* translators: add new plugin */
    120119        $submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php');
    121         if ( !is_multisite() )
    122             $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
     120        $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
    123121}
    124122unset($menu_perms, $update_plugins, $update_count);
Note: See TracChangeset for help on using the changeset viewer.