]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-http-ixr-client.php
WordPress 4.3
[autoinstalls/wordpress.git] / wp-includes / class-wp-http-ixr-client.php
index b412e2a2f8a8c6712a5ecb0ffce4307ad710d234..e0309bf9f46fede1f21d255cfb85cabc92223258 100644 (file)
@@ -7,8 +7,19 @@
  *
  */
 class WP_HTTP_IXR_Client extends IXR_Client {
  *
  */
 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);
                if ( ! $path ) {
                        // Assume we have been given a URL instead
                        $bits = parse_url($server);
@@ -21,7 +32,7 @@ class WP_HTTP_IXR_Client extends IXR_Client {
                        if ( ! $this->path ) {
                                $this->path = '/';
                        }
                        if ( ! $this->path ) {
                                $this->path = '/';
                        }
-                               
+
                        if ( ! empty( $bits['query'] ) ) {
                                $this->path .= '?' . $bits['query'];
                        }
                        if ( ! empty( $bits['query'] ) ) {
                                $this->path .= '?' . $bits['query'];
                        }
@@ -35,7 +46,10 @@ class WP_HTTP_IXR_Client extends IXR_Client {
                $this->timeout = $timeout;
        }
 
                $this->timeout = $timeout;
        }
 
-       function query() {
+       /**
+        * @return bool
+        */
+       public function query() {
                $args = func_get_args();
                $method = array_shift($args);
                $request = new IXR_Request($method, $args);
                $args = func_get_args();
                $method = array_shift($args);
                $request = new IXR_Request($method, $args);