Changeset 55886 for trunk/src/wp-includes/class-wp-http-streams.php
- Timestamp:
- 06/07/2023 06:38:10 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-streams.php
r55063 r55886 127 127 ); 128 128 129 $timeout = (int) floor( $parsed_args['timeout'] ); 130 $utimeout = $timeout == $parsed_args['timeout'] ? 0 : 1000000 * $parsed_args['timeout'] % 1000000; 129 $timeout = (int) floor( $parsed_args['timeout'] ); 130 $utimeout = 0; 131 132 if ( $timeout !== (int) $parsed_args['timeout'] ) { 133 $utimeout = 1000000 * $parsed_args['timeout'] % 1000000; 134 } 135 131 136 $connect_timeout = max( $timeout, 1 ); 132 137 … … 218 223 $include_port_in_host_header = ( 219 224 ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) 220 || ( 'http' === $parsed_url['scheme'] && 80 != $parsed_url['port'] )221 || ( 'https' === $parsed_url['scheme'] && 443 != $parsed_url['port'] )225 || ( 'http' === $parsed_url['scheme'] && 80 !== $parsed_url['port'] ) 226 || ( 'https' === $parsed_url['scheme'] && 443 !== $parsed_url['port'] ) 222 227 ); 223 228 … … 321 326 $bytes_written_to_file = fwrite( $stream_handle, $block ); 322 327 323 if ( $bytes_written_to_file != $this_block_size ) {328 if ( $bytes_written_to_file !== $this_block_size ) { 324 329 fclose( $handle ); 325 330 fclose( $stream_handle );
Note: See TracChangeset
for help on using the changeset viewer.