Commit b1b5761
committed
Theme JSON: replace top-level background style objects on merge
This commit fixes an omission in the logic of `WP_Theme_JSON::merge()` where top-level background image style objects are not replaced, rather they are merged. Because background images are self contained objects, their properties are unique and should not be merged. Blocks are already catered for via `WP_Theme_JSON::get_block_nodes()`.
Follow-up to [61858].
Props ramonopoly, andrewserong.
Fixes #62328.
git-svn-id: https://develop.svn.wordpress.org/trunk@59335 602fd350-edb4-49c9-b593-d223f7449a821 parent 87821bc commit b1b5761
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3268 | 3268 | | |
3269 | 3269 | | |
3270 | 3270 | | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
3271 | 3275 | | |
3272 | 3276 | | |
3273 | 3277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2344 | 2344 | | |
2345 | 2345 | | |
2346 | 2346 | | |
2347 | | - | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2348 | 2350 | | |
2349 | 2351 | | |
2350 | 2352 | | |
| |||
2376 | 2378 | | |
2377 | 2379 | | |
2378 | 2380 | | |
2379 | | - | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
2380 | 2385 | | |
2381 | 2386 | | |
2382 | 2387 | | |
| |||
2406 | 2411 | | |
2407 | 2412 | | |
2408 | 2413 | | |
2409 | | - | |
| 2414 | + | |
2410 | 2415 | | |
2411 | 2416 | | |
2412 | 2417 | | |
| |||
0 commit comments