Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 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-wp-http-streams.php

    r45932 r47122  
    6666        }
    6767
    68         // Always pass a Path, defaulting to the root in cases such as http://example.com
     68        // Always pass a path, defaulting to the root in cases such as http://example.com.
    6969        if ( ! isset( $arrURL['path'] ) ) {
    7070            $arrURL['path'] = '/';
     
    115115                'ssl' => array(
    116116                    'verify_peer'       => $ssl_verify,
    117                     //'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certificate()
     117                    // 'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certificate().
    118118                    'capture_peer_cert' => $ssl_verify,
    119119                    'SNI_enabled'       => true,
     
    135135
    136136        if ( ! WP_DEBUG ) {
    137             // In the event that the SSL connection fails, silence the many PHP Warnings.
     137            // In the event that the SSL connection fails, silence the many PHP warnings.
    138138            if ( $secure_transport ) {
    139139                $error_reporting = error_reporting( 0 );
     
    177177        stream_set_timeout( $handle, $timeout, $utimeout );
    178178
    179         if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { //Some proxies require full URL in this field.
     179        if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { // Some proxies require full URL in this field.
    180180            $requestPath = $url;
    181181        } else {
Note: See TracChangeset for help on using the changeset viewer.