WordPress / WordPress/create-block-theme
Stop deleting synced pattern
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Create Block Theme: 2.10.1
WP 7.0
I just learned that WP does not even have the ability to store synced pattern into a file. Why? Would be basically the same as a template part?
But you can not insert a template part into a page content area from the inserter UI right? Not sure what the reason is why a synced pattern can not be read from a file but apparently if AI is not hallucinating this is not a thing.
This plugin rudely deletes the synced patterns leaving behind a "Block has been deleted or is unavailable." in their place.
Instead, after saving the pattern to a file (fine), the database version should just NOT be deleted if the pattern is synced.
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 reproducing the issue with Create Block Theme 2.10.1 on WordPress 7.0, then trace the synced-pattern save or export flow. Done means the pattern is saved to a file without deleting its database version, so existing content does not show “Block has been deleted or is unavailable.”
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, wordpress
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100