Skip to content

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

@bobbingwide

Description

@bobbingwide

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Patternsabout pattern managementenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions