[wp-trac] [WordPress Trac] #46377: Can't remove Customizer sections whose ID contains a hyphen.

WordPress Trac noreply at wordpress.org
Thu Feb 28 21:52:42 UTC 2019


#46377: Can't remove Customizer sections whose ID contains a hyphen.
----------------------------+------------------------------
 Reporter:  jeremybubbleup  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Customize       |     Version:  5.1
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by jeremybubbleup):

 After  dequeuing the script, I was able to remove the section without the
 Customizer breaking. It seems that when the script went to bind settings,
 they weren't there (since the section was removed) and the JS failure
 caused the Customizer sections to disappear - I didn't dig deeper into the
 details of its rendering.

 There is no apparent relationship to the ID having hyphens, as I
 originally thought. As it turns out, all of the sections with hyphens in
 their IDs had bound settings in the JS, and the sections without hyphens
 happened to not have bound settings. That coincidence led me down the
 wrong path originally.

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


More information about the wp-trac mailing list