Changeset 56994 for trunk/src/wp-includes/block-supports/layout.php
- Timestamp:
- 10/24/2023 08:49:38 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/layout.php
r56709 r56994 631 631 $class_names = array(); 632 632 $layout_definitions = wp_get_layout_definitions(); 633 $container_class = wp_unique_id( 'wp-container-' ); 633 634 /* 635 * Uses an incremental ID that is independent per prefix to make sure that 636 * rendering different numbers of blocks doesn't affect the IDs of other 637 * blocks. Makes the CSS class names stable across paginations 638 * for features like the enhanced pagination of the Query block. 639 */ 640 $container_class = wp_unique_prefixed_id( 641 'wp-container-' . sanitize_title( $block['blockName'] ) . '-layout-' 642 ); 634 643 635 644 // Set the correct layout type for blocks using legacy content width.
Note: See TracChangeset
for help on using the changeset viewer.