Skip to content

WP 6.3-beta3: pattern export and import ignores sync type #52333

@bvlgn

Description

@bvlgn

Description

If you export a synced pattern the sync type (synced/unsynced) is not stored in the json file.
So an imported unsynced pattern will always become a synced pattern after import and the user has no way to change that to unsynced.

Step-by-step reproduction instructions

  1. Go to /wp-admin/edit.php?post_type=wp_block
  2. Export a synced pattern
  3. Permanently delete the pattern you just exported
  4. Import the pattern and notice it now is marked as fully synced and you cannot change that

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions