Make WordPress Core


Ignore:
Timestamp:
03/10/2022 04:00:27 PM (3 years ago)
Author:
hellofromTonya
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r52572 r52838  
    655655
    656656/**
    657  * A wrapper for PHP's parse_url() function that handles consistency in the return
    658  * values across PHP versions.
    659  *
    660  * PHP 5.4.7 expanded parse_url()'s ability to handle non-absolute url's, including
    661  * schemeless and relative url's with :// in the path. This function works around
     657 * A wrapper for PHP's parse_url() function that handles consistency in the return values
     658 * across PHP versions.
     659 *
     660 * PHP 5.4.7 expanded parse_url()'s ability to handle non-absolute URLs, including
     661 * schemeless and relative URLs with "://" in the path. This function works around
    662662 * those limitations providing a standard output on PHP 5.2~5.4+.
    663663 *
    664  * Secondly, across various PHP versions, schemeless URLs starting containing a ":"
    665  * in the query are being handled inconsistently. This function works around those
    666  * differences as well.
     664 * Secondly, across various PHP versions, schemeless URLs containing a ":" in the query
     665 * are being handled inconsistently. This function works around those differences as well.
    667666 *
    668667 * @since 4.4.0
Note: See TracChangeset for help on using the changeset viewer.