[wp-trac] [WordPress Trac] #21059: Customizer color picker has no remove button

WordPress Trac noreply at wordpress.org
Tue Jan 24 18:38:31 UTC 2017

#21059: Customizer color picker has no remove button
 Reporter:  kcssm        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:

Comment (by westonruter):

 Replying to [comment:5 justnorris]:
 > There is a "clear" button right now (3.5 & 3.6 Beta) when using
 > 'default' => null,
 > 'sanitize_callback' => 'sanitize_hex_color',
 > Clicking the "Clear" and saving does nothing, the user is still not able
 to change the color, even though a way to "clear" exists. This means that
 I must to specify the colors in PHP and CSS, which is not ideal.

 This could be because a `null` value is interpreted in the customizer as
 meaning it is invalid.

Ticket URL: <https://core.trac.wordpress.org/ticket/21059#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list