WordPress.org

Make WordPress Core

Changeset 12956


Ignore:
Timestamp:
02/04/2010 08:32:06 PM (10 years ago)
Author:
ryan
Message:

Move Network menu to the top. see #11644

File:
1 edited

Legend:

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

    r12920 r12956  
    2626$awaiting_mod = $awaiting_mod->moderated;
    2727
    28 $menu[0] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top', 'menu-dashboard', 'div' );
    29 if ( is_multisite() ) {
    30     $submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
    31     $submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
    32 }
    33 
    3428if ( is_multisite() && is_super_admin() ) {
    35     $menu[1] = array( '', 'read', 'separator0', '', 'wp-menu-separator' );
    3629    /* translators: Network menu item */
    37     $menu[2] = array(__('Network'), '10', 'ms-admin.php', '', 'menu-top menu-top-first', 'menu-site', 'div');
     30    $menu[0] = array(__('Network'), '10', 'ms-admin.php', '', 'menu-top menu-top-first', 'menu-site', 'div');
    3831    $submenu[ 'ms-admin.php' ][1] = array( __('Admin'), 'super_admin', 'ms-admin.php' );
    3932    /* translators: Sites menu item */
     
    4336    $submenu[ 'ms-admin.php' ][25] = array( __('Options'), 'super_admin', 'ms-options.php' );
    4437    $submenu[ 'ms-admin.php' ][30] = array( __('Upgrade'), 'super_admin', 'ms-upgrade-site.php' );
     38
     39    $menu[1] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
     40}
     41
     42$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top', 'menu-dashboard', 'div' );
     43if ( is_multisite() ) {
     44    $submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
     45    $submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
    4546}
    4647
Note: See TracChangeset for help on using the changeset viewer.