WordPress / WordPress/create-block-theme
Overwrite: consider whether moving template contents to a pattern is correct behavior
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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