From 2b410630447506596ad288af1b7e6786ef65d58a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 10 Nov 2011 00:41:45 +0000 Subject: [PATCH] Show sites in the 'My Sites' menu as secondary items only when the user is a super admin and therefore has a primary menu item (Network Admin). props wpmuguru, fixes #19221. git-svn-id: https://develop.svn.wordpress.org/trunk@19235 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index c97529e8f2..3210fc3a58 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -327,7 +327,7 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) { $wp_admin_bar->add_menu( array( 'parent' => 'my-sites', - 'secondary' => true, + 'secondary' => is_super_admin(), 'id' => $menu_id, 'title' => $blavatar . $blogname, 'href' => get_admin_url( $blog->userblog_id ),