Make WordPress Core

Changeset 19235


Ignore:
Timestamp:
11/10/2011 12:41:45 AM (12 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r19230 r19235  
    328328        $wp_admin_bar->add_menu( array(
    329329            'parent'    => 'my-sites',
    330             'secondary' => true,
     330            'secondary' => is_super_admin(),
    331331            'id'        => $menu_id,
    332332            'title'     => $blavatar . $blogname,
Note: See TracChangeset for help on using the changeset viewer.