Make WordPress Core


Ignore:
Timestamp:
07/24/2024 12:24:31 AM (2 years ago)
Author:
noisysocks
Message:

Block themes: Enable block-level background image styles

Allows defining background images for blocks in theme.json.

Syncs PHP changes from https://github.com/WordPress/gutenberg/pull/60100.

Props ramonopoly, aaronrobertshaw.
Fixes #61588.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/global-styles-and-settings.php

    r58710 r58797  
    248248 *
    249249 * @since 6.1.0
     250 * @since 6.7.0 Resolve relative paths in block styles.
    250251 *
    251252 * @global WP_Styles $wp_styles
     
    255256
    256257        $tree        = WP_Theme_JSON_Resolver::get_merged_data();
     258        $tree        = WP_Theme_JSON_Resolver::resolve_theme_file_uris( $tree );
    257259        $block_nodes = $tree->get_styles_block_nodes();
    258260        foreach ( $block_nodes as $metadata ) {
Note: See TracChangeset for help on using the changeset viewer.