From d768dbdbf89c1cdf033babecdf5c4971cb76df67 Mon Sep 17 00:00:00 2001 From: Matt Shaw Date: Mon, 26 Feb 2024 13:32:06 -0500 Subject: [PATCH] Updates isEditingTemplate to check for `wp_template` post type instead of `post-only` (#59105) --- packages/edit-post/src/store/selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-post/src/store/selectors.js b/packages/edit-post/src/store/selectors.js index f5b4a27e158ea0..98f67e7e4ee5c6 100644 --- a/packages/edit-post/src/store/selectors.js +++ b/packages/edit-post/src/store/selectors.js @@ -556,7 +556,7 @@ export const isEditingTemplate = createRegistrySelector( ( select ) => () => { since: '6.5', alternative: `select( 'core/editor' ).getRenderingMode`, } ); - return select( editorStore ).getCurrentPostType() !== 'post-only'; + return select( editorStore ).getCurrentPostType() === 'wp_template'; } ); /**