Skip to content

Commit 0ec22bb

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. git-svn-id: https://develop.svn.wordpress.org/branches/6.9@61292 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 973b20f commit 0ec22bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/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
*

0 commit comments

Comments
 (0)