WordPress / WordPress/create-block-theme
Templates tab persistence
Open
Nobody has claimed this yet.
Edit Theme settings
enhancement
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Part of #836. Wires the Templates tab. Depends on the Color/foundation PR. Final per-tab PR if scheduled last; can also land before others — order among PRs 2–5 is flexible.
Scope
TemplatePartsPanel→ top-leveltemplatePartsarray.CustomTemplatesPanel→ top-levelcustomTemplatesarray (each entry:{ name, title, postTypes: [...] }).- Update
readme.txtto document the Edit Theme Settings feature (if this PR lands last; otherwise the readme update goes with whichever per-tab PR completes the feature).
Acceptance criteria
- Adding / removing / editing template parts persists.
- Adding a custom template with multiple post types persists with the array intact.
- Removing a template removes the entry only (does not touch template files on disk — that's a separate concern).
- If this is the last per-tab PR:
readme.txtdescribes the feature in the Description and Changelog sections.
Out of scope
- Touching template files on disk when entries are removed.
- WP-CLI.
References
- Tracking issue: #836
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
Trace TemplatePartsPanel and CustomTemplatesPanel to find the persistence path and how the top-level templateParts and customTemplates arrays are represented. Verify adding, editing, and removing entries, including multiple postTypes and entry-only removal. If this is the last per-tab PR, update readme.txt Description and Changelog sections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100