[wp-trac] [WordPress Trac] #19100: Introduce esc_color()
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 2 04:39:48 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 mbijon):
@nacin, I don't understand the need for is_numeric. Would that be more
efficient than pulling the hashes this way?
----
+1 on sanitize_color_hex. Just seems more like existing names.
BTW, on the efficiency, instead of if...strpos...substr, would it be
faster to do trim( urldecode( $color ), '#' ) ?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19100#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list