From 2edd1a7d5cde67e5ce6ce09a5be0f2555f057835 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 16 May 2023 14:44:19 +0000 Subject: [PATCH] Editor: Remove shortcode support from block templates. Props youknowriad, xknown, timothyblynjacobs, matveb. Merges [55761] to branch 6.2. Built from https://develop.svn.wordpress.org/branches/6.2@55766 git-svn-id: http://core.svn.wordpress.org/branches/6.2@55278 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-template.php | 2 -- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/block-template.php b/wp-includes/block-template.php index 10434dacb1..f6b8581e24 100644 --- a/wp-includes/block-template.php +++ b/wp-includes/block-template.php @@ -240,9 +240,7 @@ function get_the_block_template_html() { $content = do_blocks( $content ); $content = wptexturize( $content ); $content = convert_smilies( $content ); - $content = shortcode_unautop( $content ); $content = wp_filter_content_tags( $content, 'template' ); - $content = do_shortcode( $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 1bff217b98..76fd14727a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2.1-RC1-55765'; +$wp_version = '6.2.1-RC1-55766'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.