Editor: Remove shortcode support from block templates.

Props youknowriad, xknown, timothyblynjacobs, matveb.



git-svn-id: https://develop.svn.wordpress.org/trunk@55761 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2023-05-16 14:19:06 +00:00
parent abbf859d53
commit 1cbfa03510

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