Make WordPress Core


Ignore:
Timestamp:
09/19/2023 01:27:43 AM (19 months ago)
Author:
isabel_brison
Message:

Editor: add background image support.

Adds a new background block support with the ability to set a background image on blocks that opt into it.

Props andrewserong, mukesh27.
Fixes #59357.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r56605 r56614  
    343343     *              `position.fixed` and `position.sticky`.
    344344     * @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`.
    345      * @since 6.4.0 Added `layout.allowEditing` and `typography.writingMode`.
    346      *
     345     * @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`,
     346     *              and `typography.writingMode`.
    347347     * @var array
    348348     */
     
    350350        'appearanceTools'               => null,
    351351        'useRootPaddingAwareAlignments' => null,
     352        'background'                    => array(
     353            'backgroundImage' => null,
     354        ),
    352355        'border'                        => array(
    353356            'color'  => null,
     
    564567     * @since 6.0.0
    565568     * @since 6.2.0 Added `dimensions.minHeight` and `position.sticky`.
     569     * @since 6.4.0 Added `background.backgroundImage`.
    566570     * @var array
    567571     */
    568572    const APPEARANCE_TOOLS_OPT_INS = array(
     573        array( 'background', 'backgroundImage' ),
    569574        array( 'border', 'color' ),
    570575        array( 'border', 'radius' ),
Note: See TracChangeset for help on using the changeset viewer.