diff --git wp-includes/class-wp-http-ixr-client.php wp-includes/class-wp-http-ixr-client.php
index 4c36334..8768abe 100644
|
|
|
class WP_HTTP_IXR_Client extends IXR_Client { |
| 11 | 11 | if ( ! $path ) { |
| 12 | 12 | // Assume we have been given a URL instead |
| 13 | 13 | $bits = parse_url($server); |
| | 14 | // Set correct default port based on scheme |
| | 15 | if ( 'https' == $bits['scheme'] ) { |
| | 16 | if ( $port == 80 ) |
| | 17 | $port = 443; |
| | 18 | |
| | 19 | if ( in_array( 'ssl', stream_get_transports() ) ) |
| | 20 | $bits['scheme'] = 'ssl'; |
| | 21 | } |
| 14 | 22 | $this->scheme = $bits['scheme']; |
| 15 | 23 | $this->server = $bits['host']; |
| 16 | | $this->port = isset($bits['port']) ? $bits['port'] : 80; |
| | 24 | $this->port = isset($bits['port']) ? $bits['port'] : $port; |
| 17 | 25 | $this->path = !empty($bits['path']) ? $bits['path'] : '/'; |
| 18 | 26 | |
| 19 | 27 | // Make absolutely sure we have a path |