Changeset 12956 for trunk/wp-admin/menu.php
- Timestamp:
- 02/04/2010 08:32:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r12920 r12956 26 26 $awaiting_mod = $awaiting_mod->moderated; 27 27 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 34 28 if ( is_multisite() && is_super_admin() ) { 35 $menu[1] = array( '', 'read', 'separator0', '', 'wp-menu-separator' );36 29 /* 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'); 38 31 $submenu[ 'ms-admin.php' ][1] = array( __('Admin'), 'super_admin', 'ms-admin.php' ); 39 32 /* translators: Sites menu item */ … … 43 36 $submenu[ 'ms-admin.php' ][25] = array( __('Options'), 'super_admin', 'ms-options.php' ); 44 37 $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' ); 43 if ( is_multisite() ) { 44 $submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' ); 45 $submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' ); 45 46 } 46 47
Note: See TracChangeset
for help on using the changeset viewer.