[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
Tue Dec 28 08:26:31 UTC 2010


#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:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.1
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 I am trying to remove items from the admin bar (parent or child items) but
 a blank spot is added in lieu of the removed item. See attached
 screenshot.

 Here is the code I am using:
 {{{
 add_action( 'admin_bar_menu', 'wpss_admin_bar_menu', 100 );

 function wpss_admin_bar_menu() {
         global $wp_admin_bar;

         $wp_admin_bar->remove_menu( 'new-post' );
         $wp_admin_bar->remove_menu( 'my-blogs' );
 }
 }}}

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


More information about the wp-trac mailing list