Parsed: 130473

<?php

/**
 * Dimensions block support flag.
 *
 * This does not include the `spacing` block support even though that visually
 * appears under the "Dimensions" panel in the editor. It remains in its
 * original `spacing.php` file for compatibility with core.
 *
 * @package WordPress
 * @since 5.9.0
 */

/* function wp_register_dimensions_support() – Registers the style block attribute for block types that support it. */

/* function wp_apply_dimensions_support() – Adds CSS classes for block dimensions to the incoming attributes array. */

// Register the block support.
WP_Block_Supports::get_instance()->register(
  'dimensions',
  array(
    'register_attribute' => 'wp_register_dimensions_support',
    'apply'              => 'wp_apply_dimensions_support',
  )
);