[wp-trac] [WordPress Trac] #57611: Support the `blockTypes` and `viewport_width` props for remote patterns fetched from Pattern Directory
WordPress Trac
noreply at wordpress.org
Fri Feb 3 23:37:27 UTC 2023
#57611: Support the `blockTypes` and `viewport_width` props for remote patterns
fetched from Pattern Directory
-------------------------------------------------+-------------------------
Reporter: ntsekouras | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: gutenberg-merge has-patch has-unit- | Focuses:
tests reporter-feedback has-testing-info |
-------------------------------------------------+-------------------------
Comment (by ironprogrammer):
== Test Report
Patch tested: https://github.com/WordPress/wordpress-develop/pull/3967
👍🏻
=== Environment
- Hardware: MacBook Pro Apple M1 Pro
- OS: macOS 12.6.3
- Browser: Safari 16.3
- Server: nginx/1.23.3
- PHP: 7.4.33
- WordPress: 6.2-alpha-54642-src
- Theme: twentytwentythree v1.0
=== Actual Results
- ✅ Heading block switcher displayed a Patterns menu with a remote
heading option to switch to.
=== Additional Information
- Based on the
[https://codex.wordpress.org/WordPress.org_API#Block_Patterns pattern
directory API] options [https://github.com/WordPress/pattern-
directory/pull/111 described in the original Gutenberg PR], the only
returned pattern suggestion has the expected `meta.wpop_block_types` value
of `core/heading` (i.e. [https://wordpress.org/patterns/pattern/heading/
this pattern]).
- To view a similar API call to verify the `meta.wpop_block_types` value,
see: https://api.wordpress.org/patterns/1.0/?wp-version=6.2&pattern-
keywords=11&locale=en_US&search=heading
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57611#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list