Skip to content

Commit

Permalink
Edit Post: Register block patterns as separate plugin (#20871)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf authored Mar 13, 2020
1 parent f8da7a1 commit b0784b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/edit-post/src/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <BlockPatterns />;
},
} );

registerPlugin( 'edit-post', {
render() {
return (
<>
<BlockPatterns />
<ToolsMoreMenuGroup>
{ ( { onClose } ) => (
<>
Expand Down

0 comments on commit b0784b1

Please sign in to comment.