Ticket #27668: 27668.diff
File 27668.diff, 860 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/class-http.php
911 911 912 912 stream_set_timeout( $handle, $timeout, $utimeout ); 913 913 914 if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) //Some proxies require full URL in this field.914 if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { //Some proxies require full URL in this field. 915 915 $requestPath = $url; 916 else 917 $requestPath = $arrURL['path'] . ( isset($arrURL['query']) ? '?' . $arrURL['query'] : '' ); 916 } else { 917 $requestPath = ( isset( $arrURL['path'] ) ? $arrURL['path'] : '' ) . ( isset( $arrURL['query'] ) ? '?' . $arrURL['query'] : '' ); 918 } 918 919 919 920 if ( empty($requestPath) ) 920 921 $requestPath .= '/';