From 6f53c159eb8c61d488b05136d382fb3d38a7a59f Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Fri, 15 Nov 2024 15:08:40 +0100 Subject: [PATCH] Simplify check for replacing editor We always want to use the block email editor for mailpoet_email CPT. We don't need to check if it is allowed for the CPT. [MAILPOET-6090] --- mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php b/mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php index 26e358a4c4..bb7084935a 100644 --- a/mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php +++ b/mailpoet/lib/EmailEditor/Integrations/MailPoet/EmailEditor.php @@ -80,8 +80,7 @@ class EmailEditor { public function replaceEditor($replace, $post) { $currentScreen = get_current_screen(); - if (use_block_editor_for_post($post) && $post->post_type === self::MAILPOET_EMAIL_POST_TYPE && $currentScreen) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps - + if ($post->post_type === self::MAILPOET_EMAIL_POST_TYPE && $currentScreen) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps $this->editorPageRenderer->render(); return true; }