mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Editor: Restore shortcode support for block templates.
Follow up to [55761]. Props youknowriad, Clorith, desrosj, antpb, Otto42, johnbillion, jorbin, rmccue, timothyblynjacobs, mikeschroder, peterwilsoncc, audrasjb, matveb, noisysocks, xknown, ehtis, isabel_brison, talldanwp, gziolo, chriscct7, davidbaumwald. Fixes #58333. git-svn-id: https://develop.svn.wordpress.org/trunk@55828 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -236,6 +236,8 @@ function get_the_block_template_html() {
|
||||
|
||||
$content = $wp_embed->run_shortcode( $_wp_current_template_content );
|
||||
$content = $wp_embed->autoembed( $content );
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = do_shortcode( $content );
|
||||
$content = do_blocks( $content );
|
||||
$content = wptexturize( $content );
|
||||
$content = convert_smilies( $content );
|
||||
|
||||
@@ -142,14 +142,14 @@ function render_block_core_template_part( $attributes ) {
|
||||
}
|
||||
|
||||
// Run through the actions that are typically taken on the_content.
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = do_shortcode( $content );
|
||||
$seen_ids[ $template_part_id ] = true;
|
||||
$content = do_blocks( $content );
|
||||
unset( $seen_ids[ $template_part_id ] );
|
||||
$content = wptexturize( $content );
|
||||
$content = convert_smilies( $content );
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = wp_filter_content_tags( $content, "template_part_{$area}" );
|
||||
$content = do_shortcode( $content );
|
||||
|
||||
// Handle embeds for block template parts.
|
||||
global $wp_embed;
|
||||
|
||||
Reference in New Issue
Block a user