|Reported by:||mfields||Owned by:|
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.
Change History (21)
comment:16 @nacin — 13 months ago
- Component changed from General to Formatting
- Milestone changed from Awaiting Review to Future Release