Make WordPress Core


Ignore:
Timestamp:
05/20/2023 03:56:54 AM (10 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.
Fixes #58333.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template.php

    r55761 r55828  
    237237    $content = $wp_embed->run_shortcode( $_wp_current_template_content );
    238238    $content = $wp_embed->autoembed( $content );
     239    $content = shortcode_unautop( $content );
     240    $content = do_shortcode( $content );
    239241    $content = do_blocks( $content );
    240242    $content = wptexturize( $content );
Note: See TracChangeset for help on using the changeset viewer.