We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6512c8f commit 85e7134Copy full SHA for 85e7134
src/blocks.php
@@ -93,9 +93,11 @@ function handle_do_block( $block ) {
93
return false;
94
}
95
96
- $block['rendered'] = render_block( $block );
97
- $block['rendered'] = do_shortcode( $block['rendered'] );
98
- $block['attrs'] = wp_parse_args( $block['attrs'], get_block_defaults( $block['blockName'] ) );
+ $block['rendered'] = render_block( $block );
+ $block['rendered'] = do_shortcode( $block['rendered'] );
+ $block['attrs'] = wp_parse_args( $block['attrs'], get_block_defaults( $block['blockName'] ) );
99
+ $block['attributes'] = $block['attrs'];
100
+ $block['name'] = $block['blockName'];
101
if ( ! empty( $block['innerBlocks'] ) ) {
102
$output = [];
103
foreach ( $block['innerBlocks'] as $_block ) {
0 commit comments