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

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 1 14:49:50 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 mfields):

 I'm not against supporting other color-spaces or notations. The reason I
 choose hexadecimal is because it the easiest to deal with when storing,
 sanitizing and escaping. Both the custom background and custom header text
 color UIs use hexadecimal notation and I think that this is a great place
 to start. It's rare that I see extensions that store color values in any
 other way.

 I've uploaded a new patch that changes the function name a suggested by
 GaryJ.
 I've overwritten 19100.diff which was a botched patch to begin with.

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


More information about the wp-trac mailing list