mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-07 08:07:16 +00:00
Docs: Improve inline comments per the documentation standards.
Includes minor code layout fixes for better readability. See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -65,7 +65,7 @@ class WP_Http_Streams {
|
||||
}
|
||||
}
|
||||
|
||||
// Always pass a Path, defaulting to the root in cases such as http://example.com
|
||||
// Always pass a path, defaulting to the root in cases such as http://example.com.
|
||||
if ( ! isset( $arrURL['path'] ) ) {
|
||||
$arrURL['path'] = '/';
|
||||
}
|
||||
@@ -114,7 +114,7 @@ class WP_Http_Streams {
|
||||
array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => $ssl_verify,
|
||||
//'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certificate()
|
||||
// 'CN_match' => $arrURL['host'], // This is handled by self::verify_ssl_certificate().
|
||||
'capture_peer_cert' => $ssl_verify,
|
||||
'SNI_enabled' => true,
|
||||
'cafile' => $parsed_args['sslcertificates'],
|
||||
@@ -134,7 +134,7 @@ class WP_Http_Streams {
|
||||
$connection_error_str = null;
|
||||
|
||||
if ( ! WP_DEBUG ) {
|
||||
// In the event that the SSL connection fails, silence the many PHP Warnings.
|
||||
// In the event that the SSL connection fails, silence the many PHP warnings.
|
||||
if ( $secure_transport ) {
|
||||
$error_reporting = error_reporting( 0 );
|
||||
}
|
||||
@@ -176,7 +176,7 @@ class WP_Http_Streams {
|
||||
|
||||
stream_set_timeout( $handle, $timeout, $utimeout );
|
||||
|
||||
if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { //Some proxies require full URL in this field.
|
||||
if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { // Some proxies require full URL in this field.
|
||||
$requestPath = $url;
|
||||
} else {
|
||||
$requestPath = $arrURL['path'] . ( isset( $arrURL['query'] ) ? '?' . $arrURL['query'] : '' );
|
||||
|
||||
Reference in New Issue
Block a user