Sergey Biryukov
d8413a32e1
General: Restore (un-deprecate) the sanitize_url() function.
...
A general security rule is "Sanitize when you save, escape when you echo", and for the most part WordPress has well-named functions like `sanitize_email()` and others, with `esc_url_raw()` being a single exception that does not follow the naming.
This commit restores the previously deprecated `sanitize_url()` function as a valid alias of `esc_url_raw()`.
This better aligns with the naming with other `sanitize_*()` functions:
* `sanitize_bookmark()`
* `sanitize_bookmark_field()`
* `sanitize_category()`
* `sanitize_category_field()`
* `sanitize_comment_cookies()`
* `sanitize_email()`
* `sanitize_file_name()`
* `sanitize_hex_color()`
* `sanitize_hex_color_no_hash()`
* `sanitize_html_class()`
* `sanitize_key()`
* `sanitize_meta()`
* `sanitize_mime_type()`
* `sanitize_option()`
* `sanitize_post()`
* `sanitize_post_field()`
* `sanitize_sql_orderby()`
* `sanitize_term()`
* `sanitize_term_field()`
* `sanitize_text_field()`
* `sanitize_textarea_field()`
* `sanitize_title()`
* `sanitize_title_for_query()`
* `sanitize_title_with_dashes()`
* `sanitize_trackback_urls()`
* `sanitize_user()`
* `sanitize_user_field()`
Follow-up to [11383], [13096].
Props Ipstenu, aadilali.
Fixes #53876 .
Built from https://develop.svn.wordpress.org/trunk@51597
git-svn-id: http://core.svn.wordpress.org/trunk@51208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-08-10 19:44:59 +00:00
..
2021-07-15 18:55:29 +00:00
2021-07-15 18:55:29 +00:00
2021-07-01 21:29:56 +00:00
2021-07-28 10:06:59 +00:00
2021-07-19 00:41:57 +00:00
2021-08-03 12:18:57 +00:00
2021-04-14 23:10:04 +00:00
2021-05-24 02:18:58 +00:00
2021-07-15 18:55:29 +00:00
2021-08-10 13:45:57 +00:00
2021-06-16 17:02:59 +00:00
2021-07-06 13:52:57 +00:00
2021-05-11 19:42:02 +00:00
2021-08-03 11:08:56 +00:00
2021-03-20 18:30:08 +00:00
2021-08-10 13:04:57 +00:00
2021-07-13 05:59:01 +00:00
2021-05-10 18:24:01 +00:00
2021-06-21 06:06:57 +00:00
2021-07-01 21:02:57 +00:00
2021-07-02 14:35:58 +00:00
2021-07-01 21:12:58 +00:00
2021-07-02 21:52:57 +00:00
2021-07-28 10:06:59 +00:00
2020-11-24 12:29:07 +00:00
2021-05-20 00:04:56 +00:00
2020-11-24 21:27:05 +00:00
2021-06-08 23:32:56 +00:00
2021-03-04 00:14:04 +00:00
2021-07-03 21:42:59 +00:00
2021-07-01 21:29:56 +00:00
2020-11-12 11:17:07 +00:00
2021-05-25 18:47:59 +00:00
2021-06-06 14:05:56 +00:00
2021-01-26 13:45:57 +00:00
2021-05-05 18:54:57 +00:00
2021-05-07 09:46:58 +00:00
2021-05-07 09:46:58 +00:00
2021-07-19 21:14:57 +00:00
2021-05-24 07:38:58 +00:00
2021-08-03 11:12:55 +00:00
2021-02-02 05:17:13 +00:00
2021-06-15 15:22:58 +00:00
2021-06-15 15:22:58 +00:00
2021-06-15 15:22:58 +00:00
2021-01-28 02:04:13 +00:00
2021-05-25 14:20:57 +00:00
2021-06-15 15:22:58 +00:00
2021-07-28 10:06:59 +00:00
2021-07-28 10:06:59 +00:00
2021-07-30 19:35:58 +00:00
2021-01-03 22:04:04 +00:00
2021-07-30 19:35:58 +00:00
2021-07-30 19:35:58 +00:00
2021-05-30 19:18:01 +00:00
2021-07-30 19:35:58 +00:00
2021-07-30 19:35:58 +00:00
2021-07-30 19:35:58 +00:00
2021-07-13 18:02:57 +00:00
2021-07-30 19:35:58 +00:00
2021-07-10 23:58:57 +00:00
2021-06-17 14:37:00 +00:00
2021-06-05 15:46:57 +00:00
2020-11-12 14:36:10 +00:00
2021-08-03 11:02:00 +00:00
2021-01-15 20:08:07 +00:00
2021-01-03 22:04:04 +00:00
2021-07-01 21:12:58 +00:00
2021-07-01 21:02:57 +00:00
2021-07-01 21:02:57 +00:00
2021-07-15 00:43:00 +00:00
2021-07-15 17:39:59 +00:00
2021-05-28 18:04:57 +00:00
2020-11-12 14:43:09 +00:00
2021-07-30 19:35:58 +00:00
2021-01-03 21:57:09 +00:00
2021-07-30 19:35:58 +00:00
2021-01-03 22:04:04 +00:00
2020-11-24 21:22:04 +00:00
2021-06-15 10:24:57 +00:00
2021-01-03 22:04:04 +00:00
2020-12-10 23:59:03 +00:00
2020-11-09 15:15:08 +00:00
2021-07-30 10:53:58 +00:00
2021-04-04 18:30:05 +00:00
2021-02-22 19:18:12 +00:00
2021-07-30 19:35:58 +00:00
2021-07-30 19:35:58 +00:00
2021-05-15 17:38:05 +00:00
2021-07-30 19:35:58 +00:00
2021-02-20 17:10:11 +00:00
2021-02-01 11:55:00 +00:00
2021-07-30 19:35:58 +00:00
2020-12-10 23:53:07 +00:00
2021-01-27 21:53:58 +00:00
2021-07-22 10:06:57 +00:00
2021-08-03 18:14:58 +00:00
2021-08-02 22:31:56 +00:00
2021-01-08 14:30:14 +00:00
2021-03-04 00:14:04 +00:00
2021-06-22 19:09:00 +00:00
2021-06-23 01:34:58 +00:00
2021-06-04 10:47:58 +00:00
2021-08-10 12:54:56 +00:00
2021-07-30 19:35:58 +00:00
2021-07-30 19:35:58 +00:00
2021-07-30 19:35:58 +00:00
2021-07-03 21:42:59 +00:00
2021-04-02 15:49:05 +00:00
2021-07-22 13:07:57 +00:00
2021-02-20 12:11:03 +00:00
2021-07-09 01:18:57 +00:00
2021-05-25 08:27:57 +00:00
2021-08-10 19:44:59 +00:00
2021-07-01 21:02:57 +00:00
2020-11-03 17:36:09 +00:00
2021-03-20 18:30:08 +00:00
2021-05-15 17:38:05 +00:00
2021-08-10 19:44:59 +00:00
2021-08-05 14:49:57 +00:00
2021-06-15 15:22:58 +00:00
2021-08-10 13:45:57 +00:00
2021-05-15 17:38:05 +00:00
2021-02-02 00:10:01 +00:00
2021-08-05 12:59:58 +00:00
2021-07-01 21:02:57 +00:00
2021-06-30 17:44:58 +00:00
2021-07-06 20:21:57 +00:00
2021-08-04 14:25:58 +00:00
2021-06-24 20:55:58 +00:00
2021-07-03 21:32:58 +00:00
2020-11-19 18:24:09 +00:00
2021-07-06 20:21:57 +00:00
2021-07-28 10:02:00 +00:00
2021-06-19 20:57:01 +00:00
2021-01-03 22:04:04 +00:00
2021-07-01 21:29:56 +00:00
2021-07-03 11:31:58 +00:00
2021-07-01 21:29:56 +00:00
2021-05-04 15:01:58 +00:00
2020-11-24 21:27:05 +00:00
2021-04-26 15:38:05 +00:00
2021-02-08 14:14:08 +00:00
2021-07-14 08:14:01 +00:00
2021-06-15 15:22:58 +00:00
2020-11-12 11:17:07 +00:00
2020-11-12 11:17:07 +00:00
2021-06-30 12:34:56 +00:00
2021-07-03 21:42:59 +00:00
2020-11-19 16:15:08 +00:00
2021-03-23 23:02:05 +00:00
2020-11-16 22:52:05 +00:00
2021-01-04 17:18:04 +00:00
2021-08-05 13:11:56 +00:00
2021-06-15 15:22:58 +00:00
2021-05-15 17:38:05 +00:00
2020-11-12 11:17:07 +00:00
2021-07-03 21:42:59 +00:00
2021-05-25 14:20:57 +00:00
2021-05-25 14:20:57 +00:00
2021-05-24 08:37:55 +00:00
2021-06-22 10:00:50 +00:00
2021-08-03 18:14:58 +00:00
2021-08-07 13:55:04 +00:00
2021-05-17 17:04:01 +00:00
2021-07-13 00:02:57 +00:00
2021-08-10 19:44:59 +00:00
2021-07-09 10:57:59 +00:00
2021-08-08 14:10:01 +00:00