mirrored from git://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
block_template_part
to expand shortcodes in template parts
Add set of typical actions run on `the_content` to the `block_template_part` function. This replicate the behavior of the template part block's render method.
- Loading branch information
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/phpunit/data/themedir1/block-theme/parts/template-part-shortcode.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- wp:group {"tagName":"header","layout":{"type":"flex","flexWrap":"wrap"}} --> | ||
<header id="masthead" class="wp-block-group"> | ||
<!-- wp:shortcode --> | ||
[test_shortcode] | ||
<!-- /wp:shortcode --> | ||
</header> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters