[wp-trac] [WordPress Trac] #19100: Introduce esc_color()
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 1 12:16:15 UTC 2011
#19100: Introduce esc_color()
-------------------------+------------------------------------
Reporter: mfields | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: has-patch dev-feedback
-------------------------+------------------------------------
Currently there is no way to escape a color in hexadecimal notation before
printing it to a block of css or saving to the database. Many themes like
to introduce functionality, whether it be core-supported or completely
custom, to change the color of various parts of the templates. I believe
that a function such as `esc_color()` would promote best practices while
ensuring that unintended values do not get stored as colors and thus
echoed in css blocks potentially breaking display.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19100>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list