[wp-trac] [WordPress Trac] #15723: admin_bar_menu Hook Pass Back Admin Bar Instance

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 7 20:57:38 UTC 2010


#15723: admin_bar_menu Hook Pass Back Admin Bar Instance
-----------------------------+----------------------------------------------
 Reporter:  TheDeadMedic     |       Owner:                 
     Type:  feature request  |      Status:  new            
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Menus            |     Version:  3.1            
 Severity:  minor            |    Keywords:                 
-----------------------------+----------------------------------------------
 Would it not be handy to pass back the instance {{{$wp_admin_bar}}} in the
 {{{do_action()}}} call, if anything to save a lot of global calls?

 {{{
 do_action_ref_array( 'admin_bar_menu', array(&$wp_admin_bar) );
 }}}

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


More information about the wp-trac mailing list