#62328 closed defect (bug) (fixed)
Theme JSON: replace top-level background style objects on merge
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | has-patch, has-unit-tests, gutenberg-merge |
Focuses: | Cc: |
Description
A PR to track the backporting of https://github.com/WordPress/wordpress-develop/pull/7697
The Gutenberg PR fixes an omission in the theme json merge logic where top-level background image objects are not replaced, rather they are merged, which was the state of affairs before https://github.com/WordPress/gutenberg/pull/64128
Blocks are already catered for via ::get_block_nodes()
.
Change History (5)
This ticket was mentioned in PR #7697 on WordPress/wordpress-develop by @ramonopoly.
6 months ago
#1
Note: See
TracTickets for help on using
tickets.
A PR that syncs the Gutenberg PR:
This PR fixes an omission in the theme json merge logic where top-level background image objects are not replaced, rather they are merged. Blocks are already catered for via ::get_block_nodes().
To test, run
npm run test:php -- --filter=Tests_Theme_wpThemeJson