You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom Pattern: Each time you switch pattern categories, the number of custom patterns increases #51872
[Feature] InserterThe main way to insert blocks using the + button in the editing interface[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] BugAn existing feature does not function as intended
It is a strange behavior, but every time I switch categories in the main inserter, the number of registered custom patterns increases. This problem appears to occur when multiple custom patterns are registered. Also, I don't think this is the intended behavior, but the custom patterns appear in all categories.
Step-by-step reproduction instructions
Register two patterns with Synced turned off from the Library menu in the Site Editor.
Open the main block inserter.
Click Patterns tab.
Click Custom patterns category.
Two patterns should appear correctly.
Switch to other categories.
One custom pattern is added.
Return to Custom patterns category.
The number of custom patterns increases to three.
Repeat to switch categories.
Each iteration should increase the number of custom patterns.
Screenshots, screen recording, code snippet
c22f1fcfc097fa80150a073597e14f6f.mp4
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.
[Feature] InserterThe main way to insert blocks using the + button in the editing interface[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] BugAn existing feature does not function as intended
Activity
glendaviesnz commentedon Jun 25, 2023
This PR seems to also fix this issue. Can you please test against that PR @t-hamano and confirm?
talldan commentedon Jun 28, 2023
Fixed by #51947