From cb8f300d810ec039ca29d33727e010a757391ec5 Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Thu, 10 Mar 2022 16:00:27 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@52838 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/http.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/http.php b/src/wp-includes/http.php index c543956947..2c8c3125ae 100644 --- a/src/wp-includes/http.php +++ b/src/wp-includes/http.php @@ -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 - * values across PHP versions. + * A wrapper for PHP's parse_url() function that handles consistency in the return values + * across PHP versions. * - * PHP 5.4.7 expanded parse_url()'s ability to handle non-absolute url's, including - * schemeless and relative url's with :// in the path. This function works around + * PHP 5.4.7 expanded parse_url()'s ability to handle non-absolute URLs, including + * schemeless and relative URLs with "://" in the path. This function works around * those limitations providing a standard output on PHP 5.2~5.4+. * - * Secondly, across various PHP versions, schemeless URLs starting containing a ":" - * in the query are being handled inconsistently. This function works around those - * differences as well. + * Secondly, across various PHP versions, schemeless URLs containing a ":" in the query + * are being handled inconsistently. This function works around those differences as well. * * @since 4.4.0 * @since 4.7.0 The `$component` parameter was added for parity with PHP's `parse_url()`.