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
This commit is contained in:
audrasjb 2023-05-16 14:21:18 +00:00
parent 02a131ec30
commit 6a077b35f1
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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.