WordPress/wp-content/themes/twentyeleven/inc
koopersmith 0df3218cc2 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: http://core.svn.wordpress.org/trunk@20936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 18:44:31 +00:00
..
images Move files in inc/theme-options up one level. see #17198. 2011-04-28 08:59:42 +00:00
theme-customizer.js Twenty Eleven theme customizer integration. props lancewillett, Otto42. fixes #20448, see #19910. 2012-05-25 21:50:01 +00:00
theme-options.css Add rtl class to the admin body if is_rtl(). RTL fixes for twentyeleven theme-options.php. Props rasheed. fixes #17603 2011-06-02 22:19:58 +00:00
theme-options.js * Don't clear link colour when switching layouts 2011-06-10 13:41:51 +00:00
theme-options.php 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. 2012-05-26 18:44:31 +00:00
widgets.php Indent code within an inside Twenty Eleven's ephemera widget. props lloydbudd, fixes #18751. 2011-11-16 00:08:29 +00:00