Skip to content

Commit

Permalink
Revert "Process template part shortcodes before blocks (#50801)"
Browse files Browse the repository at this point in the history
This reverts commit 7644bfb.
  • Loading branch information
priethor committed May 20, 2023
1 parent 7644bfb commit f421ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/template-part/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,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;
Expand Down

0 comments on commit f421ecf

Please sign in to comment.