[wp-trac] [WordPress Trac] #59247: Replace the remaining instances of esc_url_raw() with sanitize_url()

WordPress Trac noreply at wordpress.org
Wed Aug 30 10:08:06 UTC 2023


#59247: Replace the remaining instances of esc_url_raw() with sanitize_url()
----------------------------+----------------------------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  6.4
Component:  Formatting      |    Version:  6.1
 Severity:  normal          |   Keywords:  needs-patch good-first-bug
  Focuses:                  |
----------------------------+----------------------------------------
 Background: #55852.

 Since `esc_url_raw()` is now a wrapper for `sanitize_url()`, all of the
 former function calls in core were replaced with the latter in [53455] /
 #55852.

 Two instances accidentally snuck in later:
 * One in `wp_update_themes()` from [53933].
 * One in `wp_nonce_ays()` from [54522].

 For consistency, let's  replace those two `esc_url_raw()` calls with
 `sanitize_url()` as well.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59247>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list