From 03b853783f159aaebaf412013afc4cbe74e02f8b Mon Sep 17 00:00:00 2001 From: Ella Date: Tue, 12 Dec 2023 12:04:09 +0100 Subject: [PATCH] Fix content lock UI regression --- packages/block-editor/src/hooks/index.js | 3 ++- packages/block-editor/src/hooks/utils.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/hooks/index.js b/packages/block-editor/src/hooks/index.js index 26d1d1ad12bc0b..385b9fe6b1511e 100644 --- a/packages/block-editor/src/hooks/index.js +++ b/packages/block-editor/src/hooks/index.js @@ -23,7 +23,7 @@ import border from './border'; import position from './position'; import layout from './layout'; import childLayout from './layout-child'; -import './content-lock-ui'; +import contentLockUI from './content-lock-ui'; import './metadata'; import customFields from './custom-fields'; import blockHooks from './block-hooks'; @@ -38,6 +38,7 @@ createBlockEditFilter( duotone, position, layout, + contentLockUI, window.__experimentalConnections ? customFields : null, blockHooks, blockRenaming, diff --git a/packages/block-editor/src/hooks/utils.js b/packages/block-editor/src/hooks/utils.js index cd342af00d1a55..27c5c346458d21 100644 --- a/packages/block-editor/src/hooks/utils.js +++ b/packages/block-editor/src/hooks/utils.js @@ -418,12 +418,14 @@ export function createBlockEditFilter( features ) { neededProps[ key ] = props.attributes[ key ]; } } + return (