HTTP API: Fix typo in and improve readability of `wp_parse_url()` docblock.
Removes the "starting" word from "starting containing" as this is a typo. Includes minor formatting adjustments to improve readability. Follow-up to [38726]. Props mehedi890, SergeyBiryukov, mukesh27. Fixes #55355. Built from https://develop.svn.wordpress.org/trunk@52838 git-svn-id: http://core.svn.wordpress.org/trunk@52427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbf017e550
commit
d1565514e4
|
@ -654,16 +654,15 @@ function ms_allowed_http_request_hosts( $is_external, $host ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A wrapper for PHP's parse_url() function that handles consistency in the return
|
* A wrapper for PHP's parse_url() function that handles consistency in the return values
|
||||||
* values across PHP versions.
|
* across PHP versions.
|
||||||
*
|
*
|
||||||
* PHP 5.4.7 expanded parse_url()'s ability to handle non-absolute url's, including
|
* PHP 5.4.7 expanded parse_url()'s ability to handle non-absolute URLs, including
|
||||||
* schemeless and relative url's with :// in the path. This function works around
|
* schemeless and relative URLs with "://" in the path. This function works around
|
||||||
* those limitations providing a standard output on PHP 5.2~5.4+.
|
* those limitations providing a standard output on PHP 5.2~5.4+.
|
||||||
*
|
*
|
||||||
* Secondly, across various PHP versions, schemeless URLs starting containing a ":"
|
* Secondly, across various PHP versions, schemeless URLs containing a ":" in the query
|
||||||
* in the query are being handled inconsistently. This function works around those
|
* are being handled inconsistently. This function works around those differences as well.
|
||||||
* differences as well.
|
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @since 4.7.0 The `$component` parameter was added for parity with PHP's `parse_url()`.
|
* @since 4.7.0 The `$component` parameter was added for parity with PHP's `parse_url()`.
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.0-alpha-52837';
|
$wp_version = '6.0-alpha-52838';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue