From 32ec461d36079dc431d48509129d12caef844fb8 Mon Sep 17 00:00:00 2001 From: theodesp <328805+theodesp@users.noreply.github.com> Date: Wed, 10 May 2023 11:48:58 +0100 Subject: [PATCH] Feat: Use render_block instead of innerHTML on innerBlocks --- includes/Data/ContentBlocksResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );