[wp-trac] [WordPress Trac] #47282: Use font-display for Google Fonts in core themes
WordPress Trac
noreply at wordpress.org
Thu May 16 05:31:14 UTC 2019
#47282: Use font-display for Google Fonts in core themes
---------------------------+------------------------
Reporter: westonruter | Owner: flixos90
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.3
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------------
Comment (by superpoincare):
@westonruter
True.
Actually a simpler solution is to use the filter style_loader_src and use
str_replace. Or just use wp_enqueue_style with the preferred url, since it
doesn't override and the child functions.php loads first.
But I was just aiming for giving more flexibility for users.
Anyway there are enough flexibilities already, so it's not necessary to
make the function pluggable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47282#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list