diff --git a/assets/course-theme/blocks/register-template-blocks.js b/assets/course-theme/blocks/register-template-blocks.js index 072da488eb..2e85e931fd 100644 --- a/assets/course-theme/blocks/register-template-blocks.js +++ b/assets/course-theme/blocks/register-template-blocks.js @@ -32,7 +32,7 @@ export function registerTemplateBlocks( blocks ) { const postType = select( 'core/editor' )?.getCurrentPostType(); const editPost = select( 'core/edit-post' ); - if ( ! postType || ! editPost ) { + if ( ! postType || ! editPost || 'wp_template' === postType ) { return; } diff --git a/changelog/fix-gutenberg-compat-fix b/changelog/fix-gutenberg-compat-fix new file mode 100644 index 0000000000..0ea5e9d40f --- /dev/null +++ b/changelog/fix-gutenberg-compat-fix @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fix broken Learning Mode templates on Gutenberg 17.1.0