pattern-directory
pattern-directory copied to clipboard
Block theme: Update pattern workaround to use template filters.
Fixes #662 — This removes the pattern slug filtering in favor of adding extra custom templates, and filtering to inject those into the hierarchy. This is a more core-native way to handle template overrides, so it will be less likely to break in the future. With this change, we can unpin Gutenberg.
Additionally, this fixes the alignment of the "logged out" error messages.
Screenshots
"Before" here is with GB <18, just to show the alignment change.
Before | After |
---|---|
How to test the changes in this Pull Request:
- Update locally to Gutenberg 18+
- Be logged out
- View the "My patterns" page
- It should give you a "please log in" message
- Repeat with Favorites, it should also show a "please log in" message
- View a pattern you own
- There should be a status message above the pattern name and pattern actions (edit, etc) under the preview.