-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure [bw_fields] shortcode is expanded within query loops for both …
…shortcode and paragraph blocks #28
- Loading branch information
1 parent
b9c82bf
commit 4cfe9e0
Showing
3 changed files
with
37 additions
and
0 deletions.
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
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
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,18 @@ | ||
<?php | ||
|
||
/** | ||
* Overrides core/shortcode to expand the shortcodes in the block. | ||
* | ||
* Hack until a solution is delivered in Gutenberg for 43053 or 35676 | ||
* | ||
* @param $attributes | ||
* @param $content | ||
* @param $block | ||
* | ||
* @return string | ||
*/ | ||
function fizzie_render_block_core_shortcode( $attributes, $content, $block ) { | ||
bw_trace2(); | ||
$html = do_shortcode( $content ); | ||
return $html; | ||
} |