Changeset 49226 for trunk/src/wp-includes/class-wp-block.php
- Timestamp:
- 10/20/2020 01:33:02 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block.php
r48845 r49226 193 193 */ 194 194 public function render( $options = array() ) { 195 global $post ;195 global $post, $current_parsed_block; 196 196 $options = wp_parse_args( 197 197 $options, … … 207 207 $index = 0; 208 208 foreach ( $this->inner_content as $chunk ) { 209 $block_content .= is_string( $chunk ) ? 210 $chunk : 211 $this->inner_blocks[ $index++ ]->render(); 209 if ( is_string( $chunk ) ) { 210 $block_content .= $chunk; 211 } else { 212 $parent_parsed_block = $current_parsed_block; 213 $current_parsed_block = $this->inner_blocks[ $index ]->parsed_block; 214 $block_content .= $this->inner_blocks[ $index++ ]->render(); 215 $current_parsed_block = $parent_parsed_block; 216 } 212 217 } 213 218 }
Note: See TracChangeset
for help on using the changeset viewer.