Ticket #34796: 34796.diff
File 34796.diff, 676 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/class-wp-http-streams.php
203 203 if ( ! is_null($r['body']) ) 204 204 $strHeaders .= $r['body']; 205 205 206 // Ensure the stream is ready to write to 207 $no_streams = array(); 208 $write_streams = array( $handle ); 209 if ( ! stream_select( $no_streams, $write_streams, $no_streams, 0, 50 ) ) { 210 return new WP_Error( 'http_request_failed', __( 'Could not open outbound stream' ) ); 211 } 212 206 213 fwrite($handle, $strHeaders); 207 214 208 215 if ( ! $r['blocking'] ) {