Make WordPress Core


Ignore:
Timestamp:
01/09/2024 06:10:09 AM (2 years ago)
Author:
isabel_brison
Message:

Editor: add size and repeat to background image support.

Adds background size and background repeat style processing to the background image block support and WP_Style_Engine definitions.

Props andrewserong, mukesh27.
Fixes #60175.

File:
1 edited

Legend:

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

    r57247 r57254  
    345345     * @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`,
    346346     *              `typography.writingMode`, `lightbox.enabled` and `lightbox.allowEditing`.
    347      * @since 6.5.0 Added support for `layout.allowCustomContentAndWideSize`.
     347     * @since 6.5.0 Added support for `layout.allowCustomContentAndWideSize` and
     348     *              `background.backgroundSize`.
    348349     * @var array
    349350     */
     
    353354        'background'                    => array(
    354355            'backgroundImage' => null,
     356            'backgroundSize'  => null,
    355357        ),
    356358        'border'                        => array(
     
    574576     * @since 6.2.0 Added `dimensions.minHeight` and `position.sticky`.
    575577     * @since 6.4.0 Added `background.backgroundImage`.
     578     * @since 6.5.0 Added `background.backgroundSize`.
    576579     * @var array
    577580     */
    578581    const APPEARANCE_TOOLS_OPT_INS = array(
    579582        array( 'background', 'backgroundImage' ),
     583        array( 'background', 'backgroundSize' ),
    580584        array( 'border', 'color' ),
    581585        array( 'border', 'radius' ),
Note: See TracChangeset for help on using the changeset viewer.