From b0784b1d6dc988f6ed1a06d335fb1eeebbdc5ffd Mon Sep 17 00:00:00 2001 From: Miguel Fonseca Date: Fri, 13 Mar 2020 12:22:39 +0000 Subject: [PATCH] Edit Post: Register block patterns as separate plugin (#20871) --- packages/edit-post/src/plugins/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/edit-post/src/plugins/index.js b/packages/edit-post/src/plugins/index.js index 87853d4493481b..1ea4d15f1a500d 100644 --- a/packages/edit-post/src/plugins/index.js +++ b/packages/edit-post/src/plugins/index.js @@ -16,11 +16,16 @@ import ToolsMoreMenuGroup from '../components/header/tools-more-menu-group'; import WelcomeGuideMenuItem from './welcome-guide-menu-item'; import BlockPatterns from './block-patterns'; +registerPlugin( 'edit-post-block-patterns', { + render() { + return ; + }, +} ); + registerPlugin( 'edit-post', { render() { return ( <> - { ( { onClose } ) => ( <>