[wp-trac] [WordPress Trac] #19910: Appearance Improvements: Theme Customization Frame

WordPress Trac wp-trac at lists.automattic.com
Sat May 26 18:44:54 UTC 2012


#19910: Appearance Improvements: Theme Customization Frame
-------------------------------------+--------------------------
 Reporter:  koopersmith              |       Owner:  koopersmith
     Type:  task (blessed)           |      Status:  closed
 Priority:  normal                   |   Milestone:  3.4
Component:  Appearance               |     Version:  3.3.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  dev-feedback needs-docs  |
-------------------------------------+--------------------------

Comment (by koopersmith):

 In [20936]:
 {{{
 #!CommitTicketReference repository="" revision="20936"
 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.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19910#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list