diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/class-wp-embed.php --- a/wp/wp-includes/class-wp-embed.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/class-wp-embed.php Wed Sep 21 18:19:35 2022 +0200 @@ -31,6 +31,7 @@ // Hack to get the [embed] shortcode to run before wpautop(). add_filter( 'the_content', array( $this, 'run_shortcode' ), 8 ); add_filter( 'widget_text_content', array( $this, 'run_shortcode' ), 8 ); + add_filter( 'widget_block_content', array( $this, 'run_shortcode' ), 8 ); // Shortcode placeholder for strip_shortcodes(). add_shortcode( 'embed', '__return_false' ); @@ -38,6 +39,7 @@ // Attempts to embed all URLs in a post. add_filter( 'the_content', array( $this, 'autoembed' ), 8 ); add_filter( 'widget_text_content', array( $this, 'autoembed' ), 8 ); + add_filter( 'widget_block_content', array( $this, 'autoembed' ), 8 ); // After a post is saved, cache oEmbed items via Ajax. add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) ); @@ -84,11 +86,10 @@ if ( ! $post || empty( $_GET['message'] ) ) { return; } - ?>