From dd2516334607d56dd3138e7c34f1b8d3e4c8fb06 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 19 May 2014 05:51:15 +0000 Subject: [PATCH] Add access modifiers to methods/members in `WP_HTTP_IXR_Client`. See #27881, #22234. Built from https://develop.svn.wordpress.org/trunk@28512 git-svn-id: http://core.svn.wordpress.org/trunk@28338 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-http-ixr-client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-http-ixr-client.php b/wp-includes/class-wp-http-ixr-client.php index b412e2a2f8..2a18716c46 100644 --- a/wp-includes/class-wp-http-ixr-client.php +++ b/wp-includes/class-wp-http-ixr-client.php @@ -8,7 +8,7 @@ */ class WP_HTTP_IXR_Client extends IXR_Client { - function __construct($server, $path = false, $port = false, $timeout = 15) { + public function __construct($server, $path = false, $port = false, $timeout = 15) { if ( ! $path ) { // Assume we have been given a URL instead $bits = parse_url($server); @@ -21,7 +21,7 @@ class WP_HTTP_IXR_Client extends IXR_Client { if ( ! $this->path ) { $this->path = '/'; } - + if ( ! empty( $bits['query'] ) ) { $this->path .= '?' . $bits['query']; } @@ -35,7 +35,7 @@ class WP_HTTP_IXR_Client extends IXR_Client { $this->timeout = $timeout; } - function query() { + public function query() { $args = func_get_args(); $method = array_shift($args); $request = new IXR_Request($method, $args);