From 782af9f9d5f7e9296dfc2691286912c68b499f79 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sat, 3 Jul 2021 15:15:56 +0000 Subject: [PATCH] Remove unnecessary function_exists check in get_the_block_template_html Merges [51321] to the 5.8 branch. Reviewed by SergeyBiryukov. 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. Built from https://develop.svn.wordpress.org/branches/5.8@51325 git-svn-id: http://core.svn.wordpress.org/branches/5.8@50934 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-template.php | 6 +----- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/wp-includes/block-template.php b/wp-includes/block-template.php index 332cfd0a62..88f520b1d3 100644 --- a/wp-includes/block-template.php +++ b/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 diff --git a/wp-includes/version.php b/wp-includes/version.php index b6b1c484ec..b2f0d2a3a7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-RC1-51320'; +$wp_version = '5.8-RC1-51325'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.