Make WordPress Core


Ignore:
Timestamp:
05/20/2023 04:02:53 AM (18 months ago)
Author:
desrosj
Message:

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.
Merges [55828] to the 6.0 branch.
See #58333.

Location:
branches/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0

  • branches/6.0/src/wp-includes/blocks/template-part.php

    r53157 r55831  
    129129
    130130    // Run through the actions that are typically taken on the_content.
     131    $content                       = shortcode_unautop( $content );
     132    $content                       = do_shortcode( $content );
    131133    $seen_ids[ $template_part_id ] = true;
    132134    $content                       = do_blocks( $content );
     
    134136    $content = wptexturize( $content );
    135137    $content = convert_smilies( $content );
    136     $content = shortcode_unautop( $content );
    137138    $content = wp_filter_content_tags( $content );
    138     $content = do_shortcode( $content );
    139139
    140140    // Handle embeds for block template parts.
Note: See TracChangeset for help on using the changeset viewer.