Files
wordpress-develop/wp-includes
Daryl Koopersmith 771ca21787 Theme Customizer: Ensure that JS color controls always use real color values, even if the server-side value is a hex value without a hash. fixes #20448, see #19910.
Adds WP_Customize_Setting->sanitize_js_callback and 'customize_sanitize_js_$settingID' filter, to filter values before they're passed to JS using WP_Customize_Setting->js_value().

Adds support for regular hex colors to the color picker.

Changes color methods:
* sanitize_hex_color() accepts 3 and 6 digit hex colors (with hashes) and the empty string.
* sanitize_hex_color_no_hash() accepts 3 and 6 digit hex colors (without hashes) and the empty string.
* maybe_hash_hex_color() ensures that a hex color has a hash, and otherwise leaves the value untouched.


git-svn-id: https://develop.svn.wordpress.org/trunk@20936 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 18:44:31 +00:00
..
2012-05-03 16:41:59 +00:00
2012-05-03 16:41:59 +00:00
2012-05-03 16:41:59 +00:00
2012-05-03 16:41:59 +00:00
2012-02-27 19:46:52 +00:00
2012-05-03 16:41:59 +00:00
2012-05-03 16:41:59 +00:00
2012-04-19 21:48:12 +00:00
2012-05-02 19:29:39 +00:00
2012-04-25 20:49:57 +00:00
2012-01-05 20:10:39 +00:00