#61274 closed enhancement (fixed)
Block Styles: Allow registration across multiple block types at once
| Reported by: | aaronrobertshaw | Owned by: | isabel_brison |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.6 |
| Component: | Editor | Version: | 6.6 |
| Severity: | normal | Keywords: | gutenberg-merge has-patch has-unit-tests |
| Cc: | Focuses: |
Description
This ticket tracks the backporting of PHP files for the following Gutenberg changes:
https://github.com/WordPress/gutenberg/pull/61029
The Gutenberg PR linked above was forced to add a new global function because the core WP_Block_Styles_Registry class was marked as final. The backport for this will involve updating the WP_Block_Styles_Registry class directly with matching functionality.
Included is the addition of style_data within the supported style properties. The style_data property is a theme.json shaped array which will be used by the new section styling feature to generate a dynamic stylesheet for the block style.
Change History (5)
This ticket was mentioned in PR #6609 on WordPress/wordpress-develop by @aaronrobertshaw.
2 years ago
#1
- Keywords has-patch has-unit-tests added
@isabel_brison commented on PR #6609:
2 years ago
#4
Committed in r58246.
Adds to core the functionality from:
The Gutenberg PR linked above was forced to add a new global function because the core
WP_Block_Styles_Registryclass was marked asfinal. This backport involves updating theWP_Block_Styles_Registryclass directly with matching functionality.Included is the addition of
style_datawithin the supported style properties. Thestyle_dataproperty is a theme.json shaped array that will be used by the new section styling feature to generate a dynamic stylesheet for the block style.Trac ticket: https://core.trac.wordpress.org/ticket/61274