Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest a Warning notice is produced if Save Synced Patterns would break existing content #757

Open
bobbingwide opened this issue Feb 18, 2025 · 0 comments

Comments

@bobbingwide
Copy link

The Save Synced Patterns checkbox is not checked by default.
There is a note saying:

Any synced patterns created in the Editor will be moved to the theme. Note that this will delete all synced patterns from the Editor and any references in templates will be made relative to the theme.

What it doesn’t tell you is that any use of the patterns as reusable blocks in posts, pages or other content will not be changed to refer to the theme’s pattern, and will therefore no longer work.

While developing a replacement theme for WP-Pompey I inadvertently selected the Save Synced Patterns checkbox.
4 patterns were generated, but in the process, the removal of the wp_blocks posts meant that several posts were broken.

Fortunately I was working on a local copy of the site.
I did however investigate and document the steps that might be needed in order to recover a live site. It wasn't an easy process. I can add this information in a later comment if necessary.

My requirement is for a better warning system when CBT could possibly destroy existing content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant