Skip to content

Commit

Permalink
Update blockEditor.__unstableCanInsertBlockType hook namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Nov 3, 2023
1 parent b6a47a7 commit fa28288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const init = () => {
const DISALLOWED_PARENTS = [ 'core/form' ];
addFilter(
'blockEditor.__unstableCanInsertBlockType',
'removeTemplatePartsFromPostTemplates',
'core/block-library/preventInsertingFormIntoAnotherForm',
(
canInsert,
blockType,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/template-part/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const init = () => {
const DISALLOWED_PARENTS = [ 'core/post-template', 'core/post-content' ];
addFilter(
'blockEditor.__unstableCanInsertBlockType',
'removeTemplatePartsFromPostTemplates',
'core/block-library/removeTemplatePartsFromPostTemplates',
(
canInsert,
blockType,
Expand Down

0 comments on commit fa28288

Please sign in to comment.