[wp-trac] [WordPress Trac] #19685: Allow hiding admin bar in wp-admin section

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 29 18:05:45 UTC 2011


#19685: Allow hiding admin bar in wp-admin section
-------------------------+----------------------
 Reporter:  benallfree   |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Toolbar      |     Version:  3.3
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |
-------------------------+----------------------

Comment (by benallfree):

 Thanks Jane. This is my first patch attempt, so maybe I'm mixing up
 vocabulary.

 I am talking about the horizontal bar across the top of the admin and
 front end pages when the user is logged in. There is already core code to
 hide the bar on the front end pages, but for some reason it is hard-coded
 to show on the wp-admin/ side.

 I am not aware of any side effects from my patch. It simply prevents the
 bar from rendering if a filter handler disables it. This is often
 requested to simplify the user experience because normal site users are
 sent to wp-admin/ to modify profile settings and possibly perform other
 user-level features, but they don't need that horizontal bar (just the
 vertical menu on the left).

 If there are indeed no side-effects to hiding the top bar in the admin, I
 would presume it's a good idea to use the filter that's already there.

 If the concern is that my change will break plugins that intended to hide
 the admin bar only for the front pages, we could introduce a new
 'show_admin_bar_in_admin' filter instead of hard-coding it to false if
 is_admin() is true. That way it could be overridden without breaking
 existing plugins.

 Sorry if I'm missing some major technical issue. It seems like all other
 admin functionality remains intact even if this admin bar doesn't render.

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


More information about the wp-trac mailing list