diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
index 06e0f26aae..37430aa517 100644
a
|
b
|
function esc_url( $url, $protocols = null, $_context = 'display' ) { |
4462 | 4462 | * |
4463 | 4463 | * @since 2.8.0 |
4464 | 4464 | * |
4465 | | * @see esc_url() |
| 4465 | * @see sanitize_url() |
4466 | 4466 | * |
4467 | 4467 | * @param string $url The URL to be cleaned. |
4468 | 4468 | * @param string[] $protocols Optional. An array of acceptable protocols. |
4469 | 4469 | * Defaults to return value of wp_allowed_protocols(). |
4470 | | * @return string The cleaned URL after esc_url() is run with the 'db' context. |
| 4470 | * @return string The cleaned URL after sanitize_url() is run with the 'db' context. |
4471 | 4471 | */ |
4472 | 4472 | function esc_url_raw( $url, $protocols = null ) { |
4473 | | return esc_url( $url, $protocols, 'db' ); |
| 4473 | return sanitize_url( $url, $protocols ); |
4474 | 4474 | } |
4475 | 4475 | |
4476 | 4476 | /** |
… |
… |
function esc_url_raw( $url, $protocols = null ) { |
4482 | 4482 | * @since 2.8.0 Deprecated in favor of esc_url_raw(). |
4483 | 4483 | * @since 5.9.0 Restored (un-deprecated). |
4484 | 4484 | * |
4485 | | * @see esc_url_raw() |
| 4485 | * @see esc_url() |
4486 | 4486 | * |
4487 | 4487 | * @param string $url The URL to be cleaned. |
4488 | 4488 | * @param string[] $protocols Optional. An array of acceptable protocols. |
… |
… |
function esc_url_raw( $url, $protocols = null ) { |
4490 | 4490 | * @return string The cleaned URL after esc_url() is run with the 'db' context. |
4491 | 4491 | */ |
4492 | 4492 | function sanitize_url( $url, $protocols = null ) { |
4493 | | return esc_url_raw( $url, $protocols ); |
| 4493 | return esc_url( $url, $protocols, 'db' ); |
4494 | 4494 | } |
4495 | 4495 | |
4496 | 4496 | /** |