[wp-trac] [WordPress Trac] #61274: Block Styles: Allow registration across multiple block types at once

WordPress Trac noreply at wordpress.org
Thu May 23 02:05:46 UTC 2024


#61274: Block Styles: Allow registration across multiple block types at once
-----------------------------+-----------------------------
 Reporter:  aaronrobertshaw  |      Owner:  (none)
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Editor           |    Version:
 Severity:  normal           |   Keywords:  gutenberg-merge
  Focuses:                   |
-----------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61274>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list