diff --git a/mailpoet/lib/AdminPages/Pages/AutomationEditor.php b/mailpoet/lib/AdminPages/Pages/AutomationEditor.php index 79ee1d3e9a..e94fd40b4e 100644 --- a/mailpoet/lib/AdminPages/Pages/AutomationEditor.php +++ b/mailpoet/lib/AdminPages/Pages/AutomationEditor.php @@ -89,6 +89,9 @@ class AutomationEditor { 'root' => rtrim($this->wp->escUrlRaw($this->wp->restUrl()), '/'), 'nonce' => $this->wp->wpCreateNonce('wp_rest'), ], + 'jsonapi' => [ + 'root' => rtrim($this->wp->escUrlRaw(admin_url('admin-ajax.php')), '/'), + ], 'user_roles' => $roles->get_names(), 'segments' => $segments, ]); diff --git a/mailpoet/views/automation/editor.html b/mailpoet/views/automation/editor.html index 24f3ad3ea4..4f5c9fec54 100644 --- a/mailpoet/views/automation/editor.html +++ b/mailpoet/views/automation/editor.html @@ -7,6 +7,7 @@ <% block after_javascript %>