[wp-trac] [WordPress Trac] #46540: Admin bar CSS shouldn't be added in the customizer

WordPress Trac noreply at wordpress.org
Sat Mar 16 19:42:48 UTC 2019


#46540: Admin bar CSS shouldn't be added in the customizer
--------------------------------+-----------------------------
 Reporter:  nabil_kadimi        |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Customize           |    Version:  5.1
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 I was playing with the Customizer selective refresh and noticed that the
 admin bar class WP_Admin_Bar doesn't check if the user is in the
 Customizer, thus it may add the 46px top margin and whatnots even if there
 is no admin bar.

 So to reproduce the bug, create a partial where the `render_callback` has
 wp_head() in it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46540>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list