10up / phpcs-composer

Official 10up PHPCS rules.
MIT License
48 stars 8 forks source link

Consider sanitize_url a sanitization function. #44

Closed peterwilsoncc closed 1 year ago

peterwilsoncc commented 1 year ago

Description of the Change

Add sanitize_url() as a custom sanitization function for the purpose of user input.

The current release of WPCS doesn't include it as such due to it being deprecated at the time it was released. Per the issue, it's now undeprecated.

Closes #42 Follow up to PR #43

How to test the Change

Changelog Entry

Added - Consider sanitize_url() a sanitization function.

Credits

Props @peterwilsoncc, @dkotter, @darylldoyle

Checklist: