WordPress / WordPress/create-block-theme

Overwrite: consider whether moving template contents to a pattern is correct behavior

Open
#333 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
417
Forks
66
PR merge metrics
No merged PRs in 30d

Description

Currently on Overwrite, the template contents are automatically moved to a pattern when they contain any media, in order to serve them from the theme and make them portable.

In the recent FSE outreach program, this feedback on CBT came up whether this is indeed a good approach.

Should we be pattern-izing the template contents on "Overwrite"? Or should this functionality be reserved only for exporting the theme, since that is when portability is a concern?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Overwrite flow and comparing it with theme export behavior. Review the linked FSE feedback to understand the portability concern, then determine whether pattern-izing template contents belongs in Overwrite or only during export. Done requires a decided behavior and corresponding validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.