Make WordPress Core


Ignore:
Timestamp:
12/06/2010 03:41:19 PM (13 years ago)
Author:
nacin
Message:

Link to network/update-core when running multisite. Remove theme/plugin editors from blog menu when running multisite. Redirect to network/* when accessing theme/plugin-install/editor. props ocean90, see #15525.

File:
1 edited

Legend:

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

    r16695 r16747  
    152152
    153153// Add 'Editor' to the bottom of the Appearence menu.
    154 add_action('admin_menu', '_add_themes_utility_last', 101);
     154if ( ! is_multisite() )
     155    add_action('admin_menu', '_add_themes_utility_last', 101);
    155156function _add_themes_utility_last() {
    156157    // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
     
    172173        /* translators: add new plugin */
    173174        $submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php');
    174         $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
     175        if ( ! is_multisite() )
     176            $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
    175177}
    176178unset($menu_perms, $update_plugins, $update_count);
Note: See TracChangeset for help on using the changeset viewer.