[wp-trac] [WordPress Trac] #19100: Introduce esc_color()

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 1 14:18:02 UTC 2011


#19100: Introduce esc_color()
------------------------------------+------------------------------
 Reporter:  mfields                 |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  General                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by scribu):

 As the patch shows, it's pretty easy to escape colors if you only need to
 support hex notation. The value of an esc_color() function in Core would
 be if it supports other notations as well.

 I am willing to bet money on the fact that once HSL(A) CSS color notation
 is better supported by browsers, it will be preferred by designers.

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


More information about the wp-trac mailing list