diff --git a/packages/editor/src/components/provider/index.js b/packages/editor/src/components/provider/index.js index ee17b3021b239c..e1db657cd7251b 100644 --- a/packages/editor/src/components/provider/index.js +++ b/packages/editor/src/components/provider/index.js @@ -28,6 +28,13 @@ const { ExperimentalBlockEditorProvider } = unlock( blockEditorPrivateApis ); const { PatternsMenuItems } = unlock( editPatternsPrivateApis ); const noop = () => {}; + +/** + * These are global entities that are only there to split blocks into logical units + * They don't provide a "context" for the current post/page being rendered. + * So we should not use their ids as post context. This is important to allow post blocks + * (post content, post title) to be used within them without issues. + */ const NON_CONTEXTUAL_POST_TYPES = [ 'wp_block', 'wp_template',