From ffa4103e9980bf78ec10746f1c035f9a1be57a06 Mon Sep 17 00:00:00 2001 From: dd32 Date: Fri, 5 Mar 2010 06:20:41 +0000 Subject: [PATCH] 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: http://svn.automattic.com/wordpress/trunk@13591 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 69b5a16690..fb265544ad 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -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_super_admin() ) - $submenu[ 'index.php' ][10] = array( __('Updates'), 'install_plugins', 'update-core.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'); +} $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); @@ -390,4 +391,4 @@ if (! user_can_access_admin_page()) { wp_die( __('You do not have sufficient permissions to access this page.') ); } -?> +?> \ No newline at end of file