Closed peterwilsoncc closed 1 year ago
Add sanitize_url() as a custom sanitization function for the purpose of user input.
sanitize_url()
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
<rule ref="WordPress.Security"/>
sanitize_url( wp_unslash( $_GET['test'] ) );
Added - Consider sanitize_url() a sanitization function.
Props @peterwilsoncc, @dkotter, @darylldoyle
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
<rule ref="WordPress.Security"/>
sanitize_url( wp_unslash( $_GET['test'] ) );
Changelog Entry
Credits
Props @peterwilsoncc, @dkotter, @darylldoyle
Checklist: