Skip to content

Starter pattern modal only works for 'page' post type - 6.8RC1 #69750

@jnweaver

Description

@jnweaver

Description

Adding a new post does not open the starter pattern modal even though a theme has core/post-content patterns with post set in Post Types

Step-by-step reproduction instructions

  1. Clean install of 6.8.RC1
  2. Using twentytwentyfive theme from 6.8RC1
  3. No plugins
  4. Edited a couple core/post-content from the twentytwentyfive theme to add post to the patterns' Post types meta data.
  5. Click Add new page -- the start patterns modal opens
  6. Click Add new post -- the modal does not open
  7. Replace 6.8RC1 with 6.7.2, and adding a new post, the modal does open.

This is because of this line in trunk:
https://github.com/WordPress/gutenberg/blob/trunk/packages/editor/src/components/start-page-options/index.js#L155 --

enabled: choosePatternModalEnabled && 'page' === getCurrentPostType()

I know there was a lot of discussion around the starter pattern modal and it seems the decision was ultimately to revert those UX/code changes for now. But it seems you can only use the starter pattern modal for pages as of 6.8 RC1

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.8RC1 with twentytwentyfive theme
Chrome Version 134.0.6998.166 (Official Build) (arm64)
Macbook OS 14.7.4

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] RegressionRelated to a regression in the latest release

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions