#59179 closed defect (bug) (invalid)
Use esc_url and esc_url_raw function instead of sanitize_url
Reported by: | dilipbheda | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | coding-standards | Cc: |
Description
When I reviewed the wp-admin/user-edit.php
and wp-admin/upgrade
files I saw the sanitize_url
function used for escaping the URL.
As per WordPress coding standard, it seems the deprecated function.
WordPress.WP.DeprecatedFunctions.sanitize_urlFound - sanitize_url() has been deprecated since WordPress version 2.8.0. Use esc_url_raw() instead.
Change History (3)
This ticket was mentioned in PR #5055 on WordPress/wordpress-develop by @dilipbheda.
14 months ago
#1
#2
@
14 months ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
You are using an outdated version of WordPressCS. As you could have seen in the `sanitize_url()` documentation, sanitize_url()
has been undeprecated in WP 5.9.0.
@mukesh27 commented on PR #5055:
14 months ago
#3
As per @jrfnl message on ticket.
You are using an outdated version of WordPressCS. As you could have seen in the
sanitize_url()
documentation,sanitize_url()
has been undeprecated in WP 5.9.0.
Trac ticket: https://core.trac.wordpress.org/ticket/59179