From b97fe776da274ed6349c795d495dcb72968e698f Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Fri, 2 Jul 2021 21:51:54 +0000 Subject: [PATCH] Remove unnecessary function_exists check in get_the_block_template_html WordPress can be confident that WordPress functions exist. I forgot this function existed. And I thought that it would fatal, but it didn't And it was so nice So peaceful and quiet I forgot this function existed It isn't love, it isn't hate, it's just indifference Introduced in [51003]. Props walbo. Fixes #53578. See #53176. git-svn-id: https://develop.svn.wordpress.org/trunk@51321 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/block-template.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wp-includes/block-template.php b/src/wp-includes/block-template.php index c2cf0d1086..d745c0536a 100644 --- a/src/wp-includes/block-template.php +++ b/src/wp-includes/block-template.php @@ -170,11 +170,7 @@ function get_the_block_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