WordPress.org

Make WordPress Core

Changeset 50070


Ignore:
Timestamp:
01/29/2021 05:03:04 AM (9 months ago)
Author:
noisysocks
Message:

Block Editor: Add enableCustomSpacing

Adds the enableCustomSpacing editor setting. This enables the custom block
spacing feature from Gutenberg.

Props nosolosw, gziolo.
Fixes #51760.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r50069 r50070  
    148148$custom_line_height = get_theme_support( 'custom-line-height' );
    149149$custom_units       = get_theme_support( 'custom-units' );
     150$custom_spacing     = get_theme_support( 'custom-spacing' );
    150151
    151152/**
     
    341342    'enableCustomLineHeight'               => $custom_line_height,
    342343    'enableCustomUnits'                    => $custom_units,
     344    'enableCustomSpacing'                  => $custom_spacing,
    343345);
    344346
Note: See TracChangeset for help on using the changeset viewer.