Copying a pattern from /patterns means losing details in header #53764
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
Needs Testing
Needs further testing to be confirmed.
[Type] Bug
An existing feature does not function as intended
Description
Registering a pattern by adding a .php file to the /patterns folder has some advantages in regard to functionality. Mainly, you can configure in which context a pattern can be used, by adding something like
Block Types: core/query
in the patterns header.Having a pattern registered via the /patterns folder results in a locked pattern which can't be modified directly. If a user wants to modify the pattern in the Full Site Editor, this can only be done by duplicating the pattern to the "My patterns" category. After doing this, the copied pattern will not have the configuration from the original file.
Only the
Title
value from the original header can be controlled through the Full Site Editor. Other aspects can not be changed and are lost.I think the
Block Types
value can be important for the user experience. The original configuration shouldn't be lost in my opinion, but since there are no controls for all rules in the header I'm not sure what can be done.Step-by-step reproduction instructions
Block Types: core/query
in the file header. This will result the pattern only being available in theinserter
when adding acore/query
blockObservations:
Block Types
blockScreenshots, screen recording, code snippet
No response
Environment info
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
The text was updated successfully, but these errors were encountered: