[wp-trac] [WordPress Trac] #59179: Use esc_url and esc_url_raw function instead of sanitize_url
WordPress Trac
noreply at wordpress.org
Thu Aug 24 04:33:38 UTC 2023
#59179: Use esc_url and esc_url_raw function instead of sanitize_url
------------------------------+-----------------------------
Reporter: dilipbheda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: has-patch
Focuses: coding-standards |
------------------------------+-----------------------------
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.`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59179>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list