[wp-trac] [WordPress Trac] #33428: Toggling customizer controls based on another control does not work anymore in 4.3

WordPress Trac noreply at wordpress.org
Sat Aug 22 10:21:38 UTC 2015


#33428: Toggling customizer controls based on another control does not work anymore
in 4.3
--------------------------+------------------------------
 Reporter:  maimairel     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  4.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by nikeo):

 This bug can be reproduced in TwentyFifteen when accessing the Static
 Front Page customizer section.
 => The visibility of the controls ''page_for_posts'' and ''page_on_front''
 depends upon the ''show_on_front'' setting value.
 Since 4.3, the 2 dependant controls are always visible in the two
 following cases (as far as I understand) :
 * first customizer load
 * when the preview is refreshed (because the construct.activate() #2631
 method is fired when api.previewer.preview is 'ready'

 The bug can be fixed in those two cases by adding a check on the args
 param of the control.onChangeActive(active, args) method to see if the
 control is unchanged or not.


 patch coming

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


More information about the wp-trac mailing list