Make WordPress Core

Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#59179 closed defect (bug) (invalid)

Use esc_url and esc_url_raw function instead of sanitize_url

Reported by: dilipbheda's profile 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)

#2 @jrf
12 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:


12 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.

Note: See TracTickets for help on using tickets.