WPTT / WPThemeReview

PHP_CodeSniffer rules (sniffs) to enforce WordPress theme review coding conventions
MIT License
209 stars 37 forks source link

Add sanitize for hex color #105

Closed dingo-d closed 7 years ago

dingo-d commented 7 years ago

Added sanitize_hex_color and sanitize_hex_color_no_hash to the list of sanitizing functions.

This was proposed here: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/780

jrfnl commented 7 years ago

Please send this in as a pull request to WPCS upstream. This is the wrong repo for this PR.

dingo-d commented 7 years ago

The original PR is made there as well, I just thought that it would be good to pull it here as well, or do you guys automatically get all their PR's as well?

jrfnl commented 7 years ago

We do and merge them periodically.

dingo-d commented 7 years ago

Cool, didn't know about that :)

jrfnl commented 7 years ago

Just in case you don't know: the intention of this fork is just as a temporary development location for the theme review sniffs. At some point, it will be merged into WPCS and this fork will be removed.