WordPress / WordPress/create-block-theme

Stop deleting synced pattern

Open
#858 5 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.