Changeset 53157 for trunk/src/wp-includes/blocks/block.php
- Timestamp:
- 04/12/2022 03:10:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/block.php
r51344 r53157 43 43 $seen_refs[ $attributes['ref'] ] = true; 44 44 45 $result = do_blocks( $reusable_block->post_content ); 45 // Handle embeds for reusable blocks. 46 global $wp_embed; 47 $content = $wp_embed->run_shortcode( $reusable_block->post_content ); 48 $content = $wp_embed->autoembed( $content ); 49 50 $content = do_blocks( $content ); 46 51 unset( $seen_refs[ $attributes['ref'] ] ); 47 return $ result;52 return $content; 48 53 } 49 54
Note: See TracChangeset
for help on using the changeset viewer.