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: http://svn.automattic.com/wordpress/trunk@19235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a026c389b
commit
019fa9e1e7
|
@ -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 ),
|
||||
|
|
Loading…
Reference in New Issue