[wp-trac] [WordPress Trac] #16005: When trying to remove an item from the admin bar, a blank spot is added in lieu of it

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 21:16:33 UTC 2011


#16005: When trying to remove an item from the admin bar, a blank spot is added in
lieu of it
----------------------------+---------------------
 Reporter:  sorich87        |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  3.1
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |
----------------------------+---------------------

Comment (by sorich87):

 Replying to [comment:12 kpdesign]:
 > My understanding of the remove_menu() function is that it looks for the
 slug for the menu item. Wouldn't the slug for all of the Dashboard links
 in the admin bar be 'dashboard' and thus removable using the above code?

 The ID of these items is not "dashboard" but
 "blog-{$blog->userblog_id}-d". See /wp-includes/admin-bar.php, line 137.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16005#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list