🐞 fix: Migrate blocks to use helper function for wrapper classes
This commit is contained in:
@@ -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 ) ) : ?>
|
||||
|
||||
Reference in New Issue
Block a user