[wp-trac] [WordPress Trac] #14772: Administration bar

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 22 19:06:46 UTC 2010


#14772: Administration bar
----------------------------+-----------------------------------------------
 Reporter:  rmccue          |       Owner:  filosofo 
     Type:  task (blessed)  |      Status:  assigned 
 Priority:  normal          |   Milestone:  3.1      
Component:  Administration  |     Version:  3.1      
 Severity:  normal          |    Keywords:  multisite
----------------------------+-----------------------------------------------

Comment(by ryan):

 Replying to [comment:55 willtj]:
 > Since any modifications to show_admin_bar need to be made before the
 init action fires, we're a bit limited in what we can do to decide whether
 the admin bar should be on or off.
 >
 > I'd like to be able to check the current user before deciding whether to
 show the bar; would it be worth reinstating the filter, and then setting
 show_admin_bar with whatever the filter returns?

 The admin bar is hooked to init at the default priority of 10.  A plugin
 that hooks in at priority 9 or less can access the current user and call
 show_admin_bar() prior to admin bar init.

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


More information about the wp-trac mailing list