Make WordPress Core


Ignore:
Timestamp:
02/12/2026 05:43:12 AM (2 months ago)
Author:
ramonopoly
Message:

Block Supports: Add height to dimensions supports

This PR introduces dimensions.height to the list of available block supports.

This block support enables, in the future, the removal of the custom height controls in blocks such as Image, Spacer and others in favor of customizations via block supports.

Props aaronrobertshaw, andrewserong, ramonopoly, welcher, wildworks, youknowriad.

Fixes #64202.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/style-engine/class-wp-style-engine.php

    r61619 r61620  
    211211                ),
    212212            ),
     213            'height'      => array(
     214                'property_keys' => array(
     215                    'default' => 'height',
     216                ),
     217                'path'          => array( 'dimensions', 'height' ),
     218            ),
    213219            'minHeight'   => array(
    214220                'property_keys' => array(
Note: See TracChangeset for help on using the changeset viewer.