From fe4e3bece5e5375a2ca6d5432e25ad6a3379f4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:52:40 +0200 Subject: [PATCH] Convert parent to array in block processing --- packages/blocks/src/store/process-block-type.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/blocks/src/store/process-block-type.js b/packages/blocks/src/store/process-block-type.js index ae8f92f84cfab..dfc8e47ac051d 100644 --- a/packages/blocks/src/store/process-block-type.js +++ b/packages/blocks/src/store/process-block-type.js @@ -197,5 +197,12 @@ export const processBlockType = return; } + if ( + typeof settings.parent === 'string' || + settings.parent instanceof String + ) { + settings.parent = [ settings.parent ]; + } + return settings; };