diff --git a/lib/compat/wordpress-5.9/block-template.php b/lib/compat/wordpress-5.9/block-template.php index f348818f8aa53c..1ecc2887d9f0a6 100644 --- a/lib/compat/wordpress-5.9/block-template.php +++ b/lib/compat/wordpress-5.9/block-template.php @@ -216,7 +216,10 @@ function gutenberg_get_the_template_html() { $content = $wp_embed->autoembed( $content ); $content = do_blocks( $content ); $content = wptexturize( $content ); + $content = convert_smilies( $content ); + $content = shortcode_unautop( $content ); $content = wp_filter_content_tags( $content ); + $content = do_shortcode( $content ); $content = str_replace( ']]>', ']]>', $content ); // Wrap block template in .wp-site-blocks to allow for specific descendant styles