-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: André <583546+oandregal@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
170 additions
and
46 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
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,26 @@ | ||
<?php | ||
/** | ||
* Renders the SVG filters for duotone. | ||
* | ||
* @package gutenberg | ||
*/ | ||
|
||
/** | ||
* Render the SVG filters supplied by theme.json. | ||
* | ||
* Note that this doesn't render the per-block user-defined | ||
* filters which are handled by duotone.php, but it should | ||
* be rendered in the same location as those to satisfy | ||
* Safari's rendering quirks. | ||
*/ | ||
function gutenberg_experimental_global_styles_render_svg_filters() { | ||
$filters = wp_get_global_styles_svg_filters(); | ||
if ( ! empty( $filters ) ) { | ||
echo $filters; | ||
} | ||
} | ||
|
||
add_action( | ||
'wp_body_open', | ||
'gutenberg_experimental_global_styles_render_svg_filters' | ||
); |
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