diff -r 346c88efed21 -r 5e2f62d02dcd wp/wp-includes/class-wp-http-ixr-client.php --- a/wp/wp-includes/class-wp-http-ixr-client.php Mon Jun 08 16:11:51 2015 +0000 +++ b/wp/wp-includes/class-wp-http-ixr-client.php Tue Jun 09 03:35:32 2015 +0200 @@ -7,8 +7,19 @@ * */ class WP_HTTP_IXR_Client extends IXR_Client { + public $scheme; + /** + * @var IXR_Error + */ + public $error; - function __construct($server, $path = false, $port = false, $timeout = 15) { + /** + * @param string $server + * @param string|bool $path + * @param int|bool $port + * @param int $timeout + */ + public function __construct($server, $path = false, $port = false, $timeout = 15) { if ( ! $path ) { // Assume we have been given a URL instead $bits = parse_url($server); @@ -18,8 +29,13 @@ $this->path = !empty($bits['path']) ? $bits['path'] : '/'; // Make absolutely sure we have a path - if ( ! $this->path ) + if ( ! $this->path ) { $this->path = '/'; + } + + if ( ! empty( $bits['query'] ) ) { + $this->path .= '?' . $bits['query']; + } } else { $this->scheme = 'http'; $this->server = $server; @@ -30,7 +46,7 @@ $this->timeout = $timeout; } - function query() { + public function query() { $args = func_get_args(); $method = array_shift($args); $request = new IXR_Request($method, $args);