WordPress.org

Make WordPress Core

Changeset 16815


Ignore:
Timestamp:
12/08/2010 08:11:52 PM (8 years ago)
Author:
PeteMall
Message:

Remove plugin-install from site admin for is_multisite(). See #14435

File:
1 edited

Legend:

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

    r16747 r16815  
    170170        $count = '';
    171171    $menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' );
    172         $submenu['plugins.php'][5]  = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
    173         /* translators: add new plugin */
    174         $submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php');
    175         if ( ! is_multisite() )
     172        if ( ! is_multisite() ) {
     173            /* translators: add new plugin */
     174            $submenu['plugins.php'][5]  = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
     175            $submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' );
    176176            $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
     177        }
    177178}
    178179unset($menu_perms, $update_plugins, $update_count);
Note: See TracChangeset for help on using the changeset viewer.