WordPress.org

Make WordPress Core

Changeset 13589


Ignore:
Timestamp:
03/04/2010 11:11:51 PM (12 years ago)
Author:
ryan
Message:

Display dash submenus correctly for all combinations of multisite and super admin.

File:
1 edited

Legend:

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

    r13588 r13589  
    4444}
    4545
     46if ( is_multisite() || is_super_admin() )
     47    $submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
     48
     49if ( is_multisite() )
     50    $submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
     51
    4652if ( is_super_admin() )
    4753    $submenu[ 'index.php' ][10] = array( __('Updates'), 'install_plugins',  'update-core.php');
    48 
    49 if ( is_multisite() ) {
    50     $submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
    51     $submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
    52 }
    5354
    5455$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
Note: See TracChangeset for help on using the changeset viewer.