diff -r be944660c56a -r 3d72ae0968f4 wp/wp-includes/blocks/block.php --- a/wp/wp-includes/blocks/block.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-includes/blocks/block.php Tue Sep 27 16:37:53 2022 +0200 @@ -42,9 +42,14 @@ $seen_refs[ $attributes['ref'] ] = true; - $result = do_blocks( $reusable_block->post_content ); + // Handle embeds for reusable blocks. + global $wp_embed; + $content = $wp_embed->run_shortcode( $reusable_block->post_content ); + $content = $wp_embed->autoembed( $content ); + + $content = do_blocks( $content ); unset( $seen_refs[ $attributes['ref'] ] ); - return $result; + return $content; } /**