Changeset 56995 for branches/6.4/src/wp-includes/block-supports/layout.php
- Timestamp:
- 10/24/2023 09:02:02 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4/src/wp-includes/block-supports/layout.php
r56709 r56995 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.