Show the dashboard instead of Update Core page for the dashboard.. Adds a dummy menu in the case of multisite or superadmin. see #12517

git-svn-id: https://develop.svn.wordpress.org/trunk@13591 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-03-05 06:20:41 +00:00
parent 7f8ea354ac
commit 2343b09500
1 changed files with 8 additions and 7 deletions

View File

@ -43,14 +43,15 @@ if ( is_multisite() && is_super_admin() ) {
$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-top-first', 'menu-dashboard', 'div' );
}
if ( is_multisite() || is_super_admin() )
if ( is_multisite() || is_super_admin() ) {
$submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
if ( is_multisite() )
$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
if ( is_multisite() )
$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
if ( is_super_admin() )
$submenu[ 'index.php' ][10] = array( __('Updates'), 'install_plugins', 'update-core.php');
if ( is_super_admin() )
$submenu[ 'index.php' ][10] = array( __('Updates'), 'install_plugins', 'update-core.php');
}
$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );