#59179 closed defect (bug) (invalid)
Use esc_url and esc_url_raw function instead of sanitize_url
| Reported by: | dilipbheda | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | coding-standards |
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.
3 years ago
#1
#2
@
3 years ago
- Milestone Awaiting Review
- Resolution → invalid
- Status new → 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:
3 years 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/59179