Skip to content

Commit

Permalink
Merge pull request #7317 from Automattic/fix/gutenberg-compat-fix
Browse files Browse the repository at this point in the history
Fix broken Learning Mode templates on Gutenberg 17.1.0
  • Loading branch information
donnapep authored Nov 22, 2023
2 parents f0604f1 + bf44ab2 commit 840c0c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/course-theme/blocks/register-template-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 4 additions & 0 deletions changelog/fix-gutenberg-compat-fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix broken Learning Mode templates on Gutenberg 17.1.0

0 comments on commit 840c0c0

Please sign in to comment.