Ticket #45145: 45145-blocks.php.diff
File 45145-blocks.php.diff, 732 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/blocks.php
184 184 $block_content .= is_string( $chunk ) ? $chunk : render_block( $block['innerBlocks'][ $index++ ] ); 185 185 } 186 186 187 if ( ! is_array( $block['attrs'] ) ) { 188 $block['attrs'] = array(); 189 } 190 187 191 if ( $is_dynamic ) { 188 $attributes = is_array( $block['attrs'] ) ? (array) $block['attrs'] : array();189 192 $global_post = $post; 190 $block_content = $block_type->render( $ attributes, $block_content );193 $block_content = $block_type->render( $block['attrs'], $block_content ); 191 194 $post = $global_post; 192 195 } 193 196