Skip to content

Commit

Permalink
Updates isEditingTemplate to check for wp_template post type instea…
Browse files Browse the repository at this point in the history
…d of `post-only` (#59105)
  • Loading branch information
mattgrshaw authored and getdave committed Feb 27, 2024
1 parent db0a052 commit d768dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-post/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
} );

/**
Expand Down

0 comments on commit d768dbd

Please sign in to comment.