-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WordPress 5.9.0 Restored sanitize_url()
as a Proper Method for Sanitizing URLs
#2189
Comments
This is addressed in #2031 |
This issue is not resolve. I am running the latest release 2.3.0 and I'm stilling receiving an error:
|
Looks like this is only in the |
@timnolte When it's ready... |
@jrfnl is there a list of what's outstanding and/or slated to be completed for the next release? |
#2031 and the associated PR #2121 only removed the deprecation warning. WordPress-Coding-Standards/WordPress/Sniff.php Lines 197 to 200 in f4d4ff5
|
@jrchamp Good point - the sniffs using that array still need to be reviewed anyway, so I'll pick that up when I do that. |
Bug Description
When using the
sanitize_url
it is not recognized as being a proper sanitization method, and recommendsesc_url_raw()
.Minimal Code Snippet
The issue happens when running this command:
... over a file containing this code:
Error Code
Environment
Additional Context (optional)
https://developer.wordpress.org/reference/functions/sanitize_url/#changelog
Tested Against
develop
branch?develop
branch of WPCS.The text was updated successfully, but these errors were encountered: