From 2d2930d00923bed7a1b50d8a46826ceb3c5bd6f6 Mon Sep 17 00:00:00 2001 From: Joe Delly Date: Mon, 22 Feb 2016 07:49:17 -0500 Subject: [PATCH] Enabled extending of the WordpressClient to be able to add references to custom api methods --- src/WordpressClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WordpressClient.php b/src/WordpressClient.php index fd6ac00..b4ef97f 100644 --- a/src/WordpressClient.php +++ b/src/WordpressClient.php @@ -14,8 +14,8 @@ class WordpressClient { - private $username; - private $password; + protected $username; + protected $password; private $endPoint; private $request; private $responseHeader = array(); @@ -879,7 +879,7 @@ protected function getRequest() return $this->request; } - private function sendRequest($method, $params) + protected function sendRequest($method, $params) { if (!$this->endPoint) { $this->error = "Invalid endpoint " . json_encode(array(