From 774d5032a8816e86bb22c52914572c34028a66a4 Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Fri, 10 Feb 2023 14:54:42 +0200 Subject: [PATCH] fix check --- packages/block-editor/src/hooks/metadata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/hooks/metadata.js b/packages/block-editor/src/hooks/metadata.js index 1917e25d9f6c32..918f4f80ee9c27 100644 --- a/packages/block-editor/src/hooks/metadata.js +++ b/packages/block-editor/src/hooks/metadata.js @@ -8,7 +8,7 @@ const META_ATTRIBUTE_NAME = 'metadata'; export function hasBlockMetadataSupport( blockType, feature = '' ) { // Only core blocks are allowed to use __experimentalMetadata until the fetaure is stablised. - if ( ! blockType.startsWith( 'core/' ) ) { + if ( ! blockType.name.startsWith( 'core/' ) ) { return false; } const support = getBlockSupport( blockType, '__experimentalMetadata' );