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
This commit is contained in:
parent
d4dce39218
commit
f2ade7aa6d
@ -37,9 +37,12 @@ if ( is_multisite() && is_super_admin() ) {
|
|||||||
$submenu[ 'ms-admin.php' ][30] = array( __('Upgrade'), 'super_admin', 'ms-upgrade-site.php' );
|
$submenu[ 'ms-admin.php' ][30] = array( __('Upgrade'), 'super_admin', 'ms-upgrade-site.php' );
|
||||||
|
|
||||||
$menu[1] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
|
$menu[1] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
|
||||||
|
|
||||||
|
$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top', 'menu-dashboard', 'div' );
|
||||||
|
} else {
|
||||||
|
$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-top-first', 'menu-dashboard', 'div' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top', 'menu-dashboard', 'div' );
|
|
||||||
if ( is_multisite() ) {
|
if ( is_multisite() ) {
|
||||||
$submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
|
$submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
|
||||||
$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
|
$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
|
||||||
|
Loading…
Reference in New Issue
Block a user