Skip to content

Commit b54d885

Browse files
himanshupathak95himanshupathak95t-hamanoMamaduka
authored andcommitted
Editor: Enable starter pattern modal for all post types (WordPress#69753)
Unlinked contributors: jnweaver. Co-authored-by: himanshupathak95 <abcd95@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
1 parent b237ee1 commit b54d885

File tree

1 file changed

+3
-1
lines changed
  • packages/editor/src/components/start-page-options

1 file changed

+3
-1
lines changed

packages/editor/src/components/start-page-options/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { store as interfaceStore } from '@wordpress/interface';
1717
/**
1818
* Internal dependencies
1919
*/
20+
import { TEMPLATE_POST_TYPE } from '../../store/constants';
2021
import { store as editorStore } from '../../store';
2122

2223
export function useStartPatterns() {
@@ -152,7 +153,8 @@ export default function StartPageOptions() {
152153
return {
153154
postId: getCurrentPostId(),
154155
enabled:
155-
choosePatternModalEnabled && 'page' === getCurrentPostType(),
156+
choosePatternModalEnabled &&
157+
TEMPLATE_POST_TYPE !== getCurrentPostType(),
156158
};
157159
}, [] );
158160

0 commit comments

Comments
 (0)