[wp-trac] [WordPress Trac] #30428: Admin bar cannot be turn off for users with administrator's role

WordPress Trac noreply at wordpress.org
Fri Nov 21 00:29:46 UTC 2014


#30428: Admin bar cannot be turn off for users with administrator's role
--------------------------+---------------------------------
 Reporter:  Cypves        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Toolbar       |     Version:  4.0.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui, administration
--------------------------+---------------------------------
Changes (by SergeyBiryukov):

 * component:  Administration => Toolbar


Comment:

 [http://codex.wordpress.org/Function_Reference/is_admin is_admin()] is a
 check for whether we are in the admin area, not whether the current user
 is an admin.

 Toolbar cannot be disabled in the admin area regardless of the user role,
 that's by design, see #19685.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30428#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list