diff --git a/src/Unparsers/Field.php b/src/Unparsers/Field.php index c2cf83d..c112eef 100644 --- a/src/Unparsers/Field.php +++ b/src/Unparsers/Field.php @@ -250,7 +250,7 @@ private function unparse_field_block_editor(): self { } $lists = \MBB\Helpers\AllowedBlockLists::get_lists(); - $blocks = (array) $this->allowed_blocks; + $blocks = \MBB\Helpers\AllowedBlockLists::filter_valid_blocks( (array) $this->allowed_blocks ); // Check if a list with the same blocks already exists. foreach ( $lists as $id => $list ) {