[wp-trac] [WordPress Trac] #59017: Duotone not working in 6.3
WordPress Trac
noreply at wordpress.org
Wed Aug 9 20:52:24 UTC 2023
#59017: Duotone not working in 6.3
-----------------------------+------------------------------
Reporter: alh0319 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 6.3
Severity: normal | Resolution:
Keywords: | Focuses: css
-----------------------------+------------------------------
Comment (by ajlende):
A workaround for now that will likely work is re-adding the old hooks.
{{{#!php
<?php
// Render all duotone SVG filters.
add_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
add_action( 'in_admin_header', 'wp_global_styles_render_svg_filters' );
}}}
It'll render all of the SVG filters that can be accessed in CSS with
`filter: url('#wp-duotone-id');`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59017#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list