Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r47096 r47122  
    944944        }
    945945
    946         // Check for a scheme on the 'relative' url
     946        // Check for a scheme on the 'relative' URL.
    947947        if ( ! empty( $relative_url_parts['scheme'] ) ) {
    948948            return $maybe_relative_path;
     
    951951        $absolute_path = $url_parts['scheme'] . '://';
    952952
    953         // Schemeless URLs will make it this far, so we check for a host in the relative url
    954         // and convert it to a protocol-url
     953        // Schemeless URLs will make it this far, so we check for a host in the relative URL
     954        // and convert it to a protocol-URL.
    955955        if ( isset( $relative_url_parts['host'] ) ) {
    956956            $absolute_path .= $relative_url_parts['host'];
     
    965965        }
    966966
    967         // Start off with the Absolute URL path.
     967        // Start off with the absolute URL path.
    968968        $path = ! empty( $url_parts['path'] ) ? $url_parts['path'] : '/';
    969969
     
    989989        }
    990990
    991         // Add the Query string.
     991        // Add the query string.
    992992        if ( ! empty( $relative_url_parts['query'] ) ) {
    993993            $path .= '?' . $relative_url_parts['query'];
Note: See TracChangeset for help on using the changeset viewer.