Make WordPress Core

Ticket #27668: 27668.diff

File 27668.diff, 860 bytes (added by barrykooij, 10 years ago)
  • src/wp-includes/class-http.php

     
    911911
    912912                stream_set_timeout( $handle, $timeout, $utimeout );
    913913
    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.
    915915                        $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                }
    918919
    919920                if ( empty($requestPath) )
    920921                        $requestPath .= '/';