Changeset 49540
- Timestamp:
- 11/09/2020 10:59:06 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-block.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block.php
r49539 r49540 214 214 215 215 if ( $is_dynamic ) { 216 $global_post = $post; 217 $parent = WP_Block_Supports::$block_to_render; 216 $global_post = $post; 217 $parent = WP_Block_Supports::$block_to_render; 218 218 219 WP_Block_Supports::$block_to_render = $this->parsed_block; 219 $block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this ); 220 221 $block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this ); 222 220 223 WP_Block_Supports::$block_to_render = $parent; 221 $post = $global_post; 224 225 $post = $global_post; 222 226 } 223 227
Note: See TracChangeset
for help on using the changeset viewer.