diff --git a/includes/Data/ContentBlocksResolver.php b/includes/Data/ContentBlocksResolver.php index fed297d5..fc18115e 100644 --- a/includes/Data/ContentBlocksResolver.php +++ b/includes/Data/ContentBlocksResolver.php @@ -55,7 +55,7 @@ public static function resolve_content_blocks( $node, $args, $allowed_block_name $parsed_blocks, function ( $parsed_block ) { // Strip empty comments and spaces - return ! empty( trim( preg_replace('//Uis', '', $parsed_block['innerHTML']) ) ); + return ! empty( trim( preg_replace( '//Uis', '', render_block( $parsed_block ) ) ) ); }, ARRAY_FILTER_USE_BOTH );