[wp-trac] [WordPress Trac] #19100: Introduce esc_color()
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 2 03:18:33 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 nacin):
We can't use ctype_*. Needs to be is_numeric() followed by a preg_match.
Like westi, I like the idea of standardizing this, but I question
introducing something which standardizes on hex. Non-hex values are used
more and more these days. Granted, core only supports hex *currently*.
esc_color_hex() seems okay. I'm not sure I like esc_* though.
sanitize_color_hex?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19100#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list