diff --git a/lib/full-site-editing/template-loader.php b/lib/full-site-editing/template-loader.php index d6551986ac23a..431ed938f9f9a 100644 --- a/lib/full-site-editing/template-loader.php +++ b/lib/full-site-editing/template-loader.php @@ -177,11 +177,7 @@ function gutenberg_get_the_template_html() { $content = $wp_embed->autoembed( $content ); $content = do_blocks( $content ); $content = wptexturize( $content ); - if ( function_exists( 'wp_filter_content_tags' ) ) { - $content = wp_filter_content_tags( $content ); - } else { - $content = wp_make_content_images_responsive( $content ); - } + $content = wp_filter_content_tags( $content ); $content = str_replace( ']]>', ']]>', $content ); // Wrap block template in .wp-site-blocks to allow for specific descendant styles diff --git a/packages/block-library/src/template-part/index.php b/packages/block-library/src/template-part/index.php index 4f52b0f6d1738..78b4d1fa32af9 100644 --- a/packages/block-library/src/template-part/index.php +++ b/packages/block-library/src/template-part/index.php @@ -91,11 +91,7 @@ function render_block_core_template_part( $attributes ) { $content = wptexturize( $content ); $content = convert_smilies( $content ); $content = shortcode_unautop( $content ); - if ( function_exists( 'wp_filter_content_tags' ) ) { - $content = wp_filter_content_tags( $content ); - } else { - $content = wp_make_content_images_responsive( $content ); - } + $content = wp_filter_content_tags( $content ); $content = do_shortcode( $content ); // Handle embeds for block template parts.