Skip to content

Commit f2ade7a

Browse files
author
Ron Rennick
committed
Add rounded top corners to dashboard menu when there is no network menu, fixes #12151
git-svn-id: https://develop.svn.wordpress.org/trunk@13003 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d4dce39 commit f2ade7a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

wp-admin/menu.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@
3737
$submenu[ 'ms-admin.php' ][30] = array( __('Upgrade'), 'super_admin', 'ms-upgrade-site.php' );
3838

3939
$menu[1] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
40+
41+
$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top', 'menu-dashboard', 'div' );
42+
} else {
43+
$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-top-first', 'menu-dashboard', 'div' );
4044
}
4145

42-
$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top', 'menu-dashboard', 'div' );
4346
if ( is_multisite() ) {
4447
$submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
4548
$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );

0 commit comments

Comments
 (0)