Skip to content

Commit 989da0c

Browse files
committed
Docs: Detail 6.9.0 changes for esc_url_raw() and sanitize_url().
Duplicates the `@since 6.9.0` annotation on `esc_url()` to the two wrapper functions affected by the change. Reviewed by desrosj. Merges [61273] to the 6.9 branch. Props peterwilsoncc, westonruter, wildworks. Fixes #52886. Built from https://develop.svn.wordpress.org/branches/6.9@61292 git-svn-id: http://core.svn.wordpress.org/branches/6.9@60604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 768462d commit 989da0c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

wp-includes/formatting.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4594,6 +4594,8 @@ function esc_url( $url, $protocols = null, $_context = 'display' ) {
45944594
*
45954595
* @since 2.8.0
45964596
* @since 6.1.0 Turned into an alias for sanitize_url().
4597+
* @since 6.9.0 Prepends `https://` to the URL if it does not already contain a scheme
4598+
* and the first item in `$protocols` is 'https'.
45974599
*
45984600
* @see sanitize_url()
45994601
*
@@ -4612,6 +4614,8 @@ function esc_url_raw( $url, $protocols = null ) {
46124614
* @since 2.3.1
46134615
* @since 2.8.0 Deprecated in favor of esc_url_raw().
46144616
* @since 5.9.0 Restored (un-deprecated).
4617+
* @since 6.9.0 Prepends `https://` to the URL if it does not already contain a scheme
4618+
* and the first item in `$protocols` is 'https'.
46154619
*
46164620
* @see esc_url()
46174621
*

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.9-RC2-61289';
19+
$wp_version = '6.9-RC2-61292';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)