Fix create new form link in WP widgets settings [MAILPOET-1452]
This commit is contained in:
@ -221,7 +221,8 @@ EOL;
|
|||||||
function createSubscriptionForm() {
|
function createSubscriptionForm() {
|
||||||
MailPoet.Ajax.post({
|
MailPoet.Ajax.post({
|
||||||
endpoint: 'forms',
|
endpoint: 'forms',
|
||||||
action: 'create'
|
action: 'create',
|
||||||
|
api_version: window.mailpoet_api_version
|
||||||
}).done(function(response) {
|
}).done(function(response) {
|
||||||
if(response.data && response.data.id) {
|
if(response.data && response.data.id) {
|
||||||
window.location =
|
window.location =
|
||||||
|
Reference in New Issue
Block a user