[wp-trac] [WordPress Trac] #30280: Clearing color in customizer not working

WordPress Trac noreply at wordpress.org
Thu Aug 13 13:58:01 UTC 2015


#30280: Clearing color in customizer not working
--------------------------+------------------------------
 Reporter:  sidati        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by stevehenty):

 * keywords:   => has-patch


Comment:

 The 'clear' button appears when the default value of the setting is empty.
 When the 'clear' button is clicked the first time it displays 'false'. A
 second click clears the input correctly but the saved/previewed value
 reverts to the previous value instead of saving as an empty string.
 Forcing the value to an empty string instead of false in customize-
 controls.js solves both these issues - see patch.

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


More information about the wp-trac mailing list