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]
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
b124ffe596
commit
6f53c159eb
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user