Make WordPress Core


Ignore:
Timestamp:
09/21/2022 11:41:44 AM (18 months ago)
Author:
audrasjb
Message:

Editor: Introduce spacing presets in global style properties.

This changeset is part of the Gutenberg changes merged into WP 6.1. It adds spacing presets support in global style properties.

Follow-up to [54211].

Props glendaviesnz, andrewserong, costdev, audrasjb, mukesh27.
See #56467.

File:
1 edited

Legend:

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

    r54251 r54272  
    471471     * @since 5.9.0 Added user data, removed the `$settings` parameter,
    472472     *              added the `$origin` parameter.
    473      * @since 6.1.0 Added block data.
     473     * @since 6.1.0 Added block data and generation of spacingSizes array.
    474474     *
    475475     * @param string $origin Optional. To what level should we merge data.
     
    490490            $result->merge( static::get_user_data() );
    491491        }
     492
     493        // Generate the default spacingSizes array based on the merged spacingScale settings.
     494        $result->set_spacing_sizes();
    492495
    493496        return $result;
Note: See TracChangeset for help on using the changeset viewer.