Make WordPress Core


Ignore:
Timestamp:
05/20/2023 04:02:09 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.1 branch.
See #58333.

Location:
branches/6.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.1

  • branches/6.1/src/wp-includes/block-template.php

    r55771 r55830  
    238238    $content = $wp_embed->run_shortcode( $_wp_current_template_content );
    239239    $content = $wp_embed->autoembed( $content );
     240    $content = shortcode_unautop( $content );
     241    $content = do_shortcode( $content );
    240242    $content = do_blocks( $content );
    241243    $content = wptexturize( $content );
Note: See TracChangeset for help on using the changeset viewer.