[wp-trac] [WordPress Trac] #19371: As of 3.3beta2 WP_Admin_Bar no longer provides a way to access attributes of existing menu items

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 1 16:28:01 UTC 2011


#19371: As of 3.3beta2 WP_Admin_Bar no longer provides a way to access attributes
of existing menu items
------------------------------+---------------------
 Reporter:  willshouse        |       Owner:  nacin
     Type:  defect (bug)      |      Status:  closed
 Priority:  high              |   Milestone:  3.3
Component:  Admin Bar         |     Version:  3.3
 Severity:  minor             |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by willshouse):

 We are also missing the other part of scribu's contribution (and my !empty
 part)

 {{{
 public function remove_node( $id ) {
         if(!empty($this->nodes[ $id ])){
                 $node = $this->nodes[ $id ];
                 unset( $this->nodes[ $id ] );
                 return get_object_vars( $node );
         }
 }
 }}}

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


More information about the wp-trac mailing list