From 6a077b35f15590a843ff8a6c97a135f3a34872dd Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 16 May 2023 14:21:18 +0000 Subject: [PATCH] Editor: Remove shortcode support from block templates. Props youknowriad, xknown, timothyblynjacobs, matveb. Built from https://develop.svn.wordpress.org/trunk@55761 git-svn-id: http://core.svn.wordpress.org/trunk@55273 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 18df594605..6da3908203 100644 --- a/wp-includes/block-template.php +++ b/wp-includes/block-template.php @@ -239,9 +239,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 ef3d800aeb..cb36f50df7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55760'; +$wp_version = '6.3-alpha-55761'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.