Make WordPress Core


Ignore:
Timestamp:
05/20/2023 04:01:19 AM (11 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.2 branch.
See #58333.

Location:
branches/6.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.2

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

    r55766 r55829  
    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.