diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index f5930d4ec0..4031740aba 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4301,6 +4301,8 @@ function esc_sql( $data ) { * Defaults to return value of wp_allowed_protocols(). * @param string $_context Private. Use esc_url_raw() for database usage. * @return string The cleaned URL after the {@see 'clean_url'} filter is applied. + * An empty string is returned if `$url` specifies a protocol other than + * those in `$protocols`, or if `$url` contains an empty string. */ function esc_url( $url, $protocols = null, $_context = 'display' ) { $original_url = $url; @@ -4408,7 +4410,7 @@ function esc_url( $url, $protocols = null, $_context = 'display' ) { * @param string $url The URL to be cleaned. * @param string[] $protocols Optional. An array of acceptable protocols. * Defaults to return value of wp_allowed_protocols(). - * @return string The cleaned URL. + * @return string The cleaned URL after esc_url() is run with the 'db' context. */ function esc_url_raw( $url, $protocols = null ) { return esc_url( $url, $protocols, 'db' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9fcc36a03e..459971671d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta3-49511'; +$wp_version = '5.6-beta3-49512'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.