Changeset 17811
- Timestamp:
- 05/05/2011 06:57:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-http-ixr-client.php
r17771 r17811 9 9 class WP_HTTP_IXR_Client extends IXR_Client { 10 10 11 function __construct($server, $path = false, $port = 80, $timeout = 15) {11 function __construct($server, $path = false, $port = false, $timeout = 15) { 12 12 if ( ! $path ) { 13 13 // Assume we have been given a URL instead … … 15 15 $this->scheme = $bits['scheme']; 16 16 $this->server = $bits['host']; 17 $this->port = isset($bits['port']) ? $bits['port'] : 80;17 $this->port = isset($bits['port']) ? $bits['port'] : $port; 18 18 $this->path = !empty($bits['path']) ? $bits['path'] : '/'; 19 19 … … 37 37 $xml = $request->getXml(); 38 38 39 $url = $this->scheme . '://' . $this->server . ':' . $this->port . $this->path; 39 $port = $this->port ? ":$this->port" : ''; 40 $url = $this->scheme . '://' . $this->server . $port . $this->path; 40 41 $args = array( 41 42 'headers' => array('Content-Type' => 'text/xml'),
Note: See TracChangeset
for help on using the changeset viewer.