#60456 closed enhancement (fixed)
Pattern overrides: Update overrides attribute data structure and rename it to content
Reported by: | talldanwp | Owned by: | youknowriad |
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 6.5 |
Component: | Editor | Keywords: | has-patch add-to-field-guide |
Focuses: | Cc: |
Description
In the Gutenberg PR #58596, some changes were made to the data structure of the pattern overrides stored in the pattern block and consequently passed to the core/pattern-overrides block binding handler. Read there for more information on the reasoning.
Some of these changes need to be backported to WordPress core, so I'm creating this ticket for that change.
Change History (6)
This ticket was mentioned in PR #6055 on WordPress/wordpress-develop by @talldanwp.
8 months ago
#1
- Keywords has-patch added
8 months ago
#2
@talldan, when you are done with all the backports, it would be great to add some basic PHPUnit tests covering how Pattern Overrides work with block bindings. It could be on the _block_bindings_pattern_overrides_get_value
level to start with. However, more useful would be to have some integration test that runs do_blocks( '' )
(I had the old format in my local instance).
#3
@
8 months ago
- Owner set to youknowriad
- Resolution set to fixed
- Status changed from new to closed
In 57585:
Backports the changes from https://github.com/WordPress/gutenberg/pull/58596.
The gutenberg PR changes the data structure of the
overrides
data to allow it to be more flexible for future features.Trac ticket: [](https://core.trac.wordpress.org/ticket/60456)