[wp-trac] [WordPress Trac] #62491: Customizer accordion height fills screen

WordPress Trac noreply at wordpress.org
Mon Dec 2 15:45:40 UTC 2024


#62491: Customizer accordion height fills screen
-------------------------------------+-----------------------
 Reporter:  dhewercorus              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  6.7.2
Component:  Customize                |     Version:  6.7
 Severity:  major                    |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  css
-------------------------------------+-----------------------

Comment (by dhewercorus):

 After seeing @frankbiganski's post I did a test and the following code,
 added to a theme's functions.php file, will reproduce the Customizer
 height issue (I used Twenty-Eighteen theme on a clean WP install):

 {{{#!php
 function break_customizer_height() {
     ?>
     <style>
     body {
         background: red;
     }
     </style>
     <?php
 }
 add_action( 'admin_enqueue_scripts', 'break_customizer_height' );
 }}}

 This will result in the <style> tags being added to the <head> which
 somehow breaks the customizer height. The CSS in the <style> tags doesn't
 matter, they can even be empty. Not sure why this causes the customizer
 height issue though.

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


More information about the wp-trac mailing list