Make WordPress Core

Ticket #26947: ixr_query_string_patch.diff

File ixr_query_string_patch.diff, 1009 bytes (added by cfinke, 12 years ago)

Allow query strings to be included in the $server argument to IXR_Client and WP_HTTP_IXR_Client.

  • wp-includes/class-IXR.php

     
    629629            if (!$this->path) {
    630630                $this->path = '/';
    631631            }
     632
     633            if ( ! empty( $bits['query'] ) ) {
     634                $this->path .= '?' . $bits['query'];
     635            }
    632636        } else {
    633637            $this->server = $server;
    634638            $this->path = $path;
  • wp-includes/class-wp-http-ixr-client.php

     
    2020                        // Make absolutely sure we have a path
    2121                        if ( ! $this->path )
    2222                                $this->path = '/';
     23                               
     24                        if ( ! empty( $bits['query'] ) )
     25                                $this->path .= '?' . $bits['query'];
    2326                } else {
    2427                        $this->scheme = 'http';
    2528                        $this->server = $server;