Changeset 52769 for branches/5.9/src/wp-includes/block-supports/duotone.php
- Timestamp:
- 02/17/2022 08:49:37 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/wp-includes/block-supports/duotone.php
r52759 r52769 585 585 ); 586 586 add_filter( 'render_block', 'wp_render_duotone_support', 10, 2 ); 587 588 /**589 * Render the SVG filters supplied by theme.json.590 *591 * Note that this doesn't render the per-block user-defined592 * filters which are handled by wp_render_duotone_support,593 * but it should be rendered in the same location as those to satisfy594 * Safari's rendering quirks.595 *596 * @since 5.9.1597 */598 function wp_global_styles_render_svg_filters() {599 $filters = wp_get_global_styles_svg_filters();600 if ( ! empty( $filters ) ) {601 echo $filters;602 }603 }604 add_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
Note: See TracChangeset
for help on using the changeset viewer.