Changeset 47808 for trunk/src/wp-includes/class-wp-http-streams.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-streams.php
r47550 r47808 85 85 * connect to the IPv4 address. 86 86 */ 87 if ( 'localhost' == strtolower( $connect_host ) ) {87 if ( 'localhost' === strtolower( $connect_host ) ) { 88 88 $connect_host = '127.0.0.1'; 89 89 } … … 187 187 $include_port_in_host_header = ( 188 188 ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) || 189 ( 'http' == $arrURL['scheme'] && 80 != $arrURL['port'] ) ||190 ( 'https' == $arrURL['scheme'] && 443 != $arrURL['port'] )189 ( 'http' === $arrURL['scheme'] && 80 != $arrURL['port'] ) || 190 ( 'https' === $arrURL['scheme'] && 443 != $arrURL['port'] ) 191 191 ); 192 192 … … 335 335 336 336 // If the body was chunk encoded, then decode it. 337 if ( ! empty( $process['body'] ) && isset( $arrHeaders['headers']['transfer-encoding'] ) && 'chunked' == $arrHeaders['headers']['transfer-encoding'] ) { 337 if ( ! empty( $process['body'] ) && isset( $arrHeaders['headers']['transfer-encoding'] ) 338 && 'chunked' === $arrHeaders['headers']['transfer-encoding'] 339 ) { 338 340 $process['body'] = WP_Http::chunkTransferDecode( $process['body'] ); 339 341 } … … 406 408 407 409 // IP's can't be wildcards, Stop processing. 408 if ( 'ip' == $host_type ) {410 if ( 'ip' === $host_type ) { 409 411 return false; 410 412 }
Note: See TracChangeset
for help on using the changeset viewer.