[wp-trac] [WordPress Trac] #13592: script_loader_src and style_loader_tag filters
WordPress Trac
noreply at wordpress.org
Sat Dec 7 19:10:36 UTC 2013
#13592: script_loader_src and style_loader_tag filters
-------------------------------------+-----------------------------
Reporter: olivM | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------------
Comment (by retlehs):
It's a bit odd that WP core doesn't have a `script_loader_tag` filter
considering there's a `style_loader_tag` filter.
> 1) Conditional script loading
Yes, please. It doesn't look like this or #16024 is going anywhere, but
there really should be a solution in place to add conditionals for JS.
> 2) Finally solving the issue of how to enqueue a jQuery fallback in WP.
FYI, you can do this right now (although it's a bit nasty) - here's an
example from the Roots starter theme:
https://github.com/roots/roots/blob/aa59cede7fbe2b853af9cf04e52865902d2ff1a9/lib/scripts.php#L37-L52
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13592#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list