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 committed Feb 26, 2024
1 parent 2e07af8 commit 705d77c
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 @@ -538,7 +538,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 705d77c

Please sign in to comment.