Allow API to accept GET requests
[MAILPOET-2378]
This commit is contained in:
committed by
Jack Kitterhing
parent
1fe2249408
commit
e768778691
@ -79,7 +79,11 @@ class API {
|
|||||||
|
|
||||||
function setupAjax() {
|
function setupAjax() {
|
||||||
$this->wp->doAction('mailpoet_api_setup', [$this]);
|
$this->wp->doAction('mailpoet_api_setup', [$this]);
|
||||||
$this->setRequestData($_POST);
|
if (isset($_POST['api_version'])) {
|
||||||
|
$this->setRequestData($_POST);
|
||||||
|
} else {
|
||||||
|
$this->setRequestData($_GET);
|
||||||
|
}
|
||||||
|
|
||||||
$ignoreToken = (
|
$ignoreToken = (
|
||||||
$this->settings->get('captcha.type') != Captcha::TYPE_DISABLED &&
|
$this->settings->get('captcha.type') != Captcha::TYPE_DISABLED &&
|
||||||
|
Reference in New Issue
Block a user