From c8ef7f68e62d57cb02bd3563e026b9779e1158b2 Mon Sep 17 00:00:00 2001 From: duc doan Date: Sat, 4 Jul 2026 15:56:11 +0700 Subject: [PATCH] Fix: Filter allowed blocks through AllowedBlockLists::filter_valid_blocks() Co-authored-by: CommandCodeBot --- src/Unparsers/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {