diff --git a/src/WordPress/ClientActions.php b/src/WordPress/ClientActions.php index cb53bc22..a395d265 100644 --- a/src/WordPress/ClientActions.php +++ b/src/WordPress/ClientActions.php @@ -44,7 +44,15 @@ public function returnWordPressDomain() // We tried to fetch a zone but it's possible we're using an API token, // So try again with a zone name filtered API call if (!$this->api->responseOk($response)) { - $zoneRequest = new Request('GET', 'zones/', array('name' => idn_to_ascii($this->wordpressAPI->getOriginalDomain(), IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46), array())); + $zoneRequest = new Request( + 'GET', + 'zones/', + array( + 'name' => idn_to_ascii($this->wordpressAPI->getOriginalDomain(), IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46), + 'status' => 'active', + ), + null + ); $zoneResponse = $this->api->callAPI($zoneRequest); return $zoneResponse;