🐞 fix: Migrate blocks to use helper function for wrapper classes

This commit is contained in:
Keith Solomon
2025-11-20 10:20:29 -06:00
parent 974cb70b5e
commit 38ec5f850d
11 changed files with 53 additions and 90 deletions

View File

@@ -31,11 +31,7 @@ $children = get_posts(
$classes = 'page-children container relative px-4 py-8 mx-auto sm:px-6 sm:py-12 lg:px-8';
// Set wrapper attributes
if ( ! $is_preview ) {
$wrapper = get_block_wrapper_attributes( array( 'class' => $classes ) );
} else {
$wrapper = 'class="' . $classes . '"';
}
$wrapper = blockWrapperAttributes( $classes, $is_preview );
?>
<?php if ( ! empty( $children ) ) : ?>