[wp-trac] [WordPress Trac] #30813: Add a function to create a single Google font url
WordPress Trac
noreply at wordpress.org
Sun Dec 21 22:33:46 UTC 2014
#30813: Add a function to create a single Google font url
----------------------------+-----------------------------
Reporter: grapplerulrich | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: trunk
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
I have been thinking how we can standardize the hooks for styles and
scripts so that styles and scripts are loaded twice when enqueued by both
a plugin and theme or two plugins.
Google web fonts are also affected by this. It would be great if WordPress
only loaded one Google font url.
My solution is to add a function to WordPress which can be hooked into
using a filter so to add the fonts that are needed by the plugins and
themes.
https://github.com/grappler/wp-standard-handles/blob/master/functions.php[
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30813>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list