#54623 closed defect (bug) (fixed)
Block Patterns: "Featured" category & patterns missing from inserter
| Reported by: | ryelle | Owned by: | hellofromTonya |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.9 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | has-patch has-test-info commit |
| Cc: | Focuses: |
Description
In Gutenberg 11.8, the block patterns were updated to also show a "Featured" category, which loads the featured patterns from the Pattern Directory. See the original gutenberg PR here.
It seems like this was not ported back to core, so the behavior in Gutenberg & core is different.
Attachments (3)
Change History (9)
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.
5 years ago
#2
@
5 years ago
- Keywords has-testing-info added
- Owner set to
- Status new → reviewing
Test Report
Env:
- OS: macOS Big Sur
- Plugins: none activated
- Theme: TT2
- WordPress:
trunk - Localhost: wp-env
- Browser: Chrome and Edge
Steps
- Navigate to Pages
- Add a new page
- Click on the
+icon to toggle the block inserter open - Click on the "Patterns" tab
- Either scroll the featured in the left sidebar or click on the "Explore" button to open the Patterns modal.
Expected behavior: Featured patterns should be included.
Results
- Able to reproduce reported issue
- Applying the 54623.diff patch resolves the issue ✅
#3
@
5 years ago
- Keywords commit added
Marking for commit. Self-assigned to prepare commit.
Note: The hardcoded 26 is the featured category ID from the remote pattern directory, not a cat in Core. Took me a minute to realize why this hardcoded number is used.
#4
@
5 years ago
Note: The hardcoded 26 is the featured category ID from the remote pattern directory, not a cat in Core. Took me a minute to realize why this hardcoded number is used.
Yeah, that mirrors the behavior in the _load_remote_block_patterns where a similar hardcoded value is set (the core keyword). Hopefully in 6.0 we'll be able to phase that out in favor of loading all the patterns from w.org/patterns :)
Thanks for taking care of the commit!
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Test Report: Can reproduce ("Before"). Applying the patch ("After"), featured patterns now appear at the end. Works ✅