wp-includes/block-supports/layout.php
Lines:
1 to 34 of 34
<?php /** * Layout block support flag. * * @package WordPress * @since 5.8.0 */ /* function wp_register_layout_support() – Registers the layout block attribute for block types that support it. */ /* function wp_get_layout_style() – Generates the CSS corresponding to the provided layout. */ /* function wp_render_layout_support_flag() – Renders the layout config to the block wrapper. */ // Register the block support. WP_Block_Supports::get_instance()->register( 'layout', array( 'register_attribute' => 'wp_register_layout_support', ) ); add_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 ); /* function wp_restore_group_inner_container() – For themes without theme.json file, make sure to restore the inner div for the group block to avoid breaking styles relying on that div. */ add_filter( 'render_block_core/group', 'wp_restore_group_inner_container', 10, 2 ); /* function wp_restore_image_outer_container */ add_filter( 'render_block_core/image', 'wp_restore_image_outer_container', 10, 2 );