diff --git a/mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php b/mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php index 8915fbb1ef..8302ade35f 100644 --- a/mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php +++ b/mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php @@ -67,7 +67,6 @@ class EmailEditor { 'singular_name' => __('Email', 'mailpoet'), ], 'rewrite' => ['slug' => self::MAILPOET_EMAIL_POST_TYPE], - 'publicly_queryable' => true, ], ]; return $postTypes; diff --git a/packages/php/email-editor/README.md b/packages/php/email-editor/README.md index 6bcea1ed8c..8984c928cd 100644 --- a/packages/php/email-editor/README.md +++ b/packages/php/email-editor/README.md @@ -76,5 +76,4 @@ We may add, update and delete any of them. ## TODO - We use `mailpoet_data` in some section of the codebase. This will be updated. -- Native email editor implementation for the `preview_url`. - The content validation in the editor looks for the unsubscribe link tag, which is registered in the MailPoet plugin. We need either introduce generic unsubscribe link tag or move the validation to the MailPoet plugin. diff --git a/packages/php/email-editor/src/Engine/class-email-editor.php b/packages/php/email-editor/src/Engine/class-email-editor.php index 0feb89c47a..4ccf47ec33 100644 --- a/packages/php/email-editor/src/Engine/class-email-editor.php +++ b/packages/php/email-editor/src/Engine/class-email-editor.php @@ -185,6 +185,7 @@ class Email_Editor { 'has_archive' => true, 'show_in_rest' => true, // Important to enable Gutenberg editor. 'default_rendering_mode' => 'template-locked', + 'publicly_queryable' => true, // required by the preview in new tab feature. ); }