[wp-trac] [WordPress Trac] #16024: Conditional Comments for JS
WordPress Trac
noreply at wordpress.org
Mon Apr 14 20:52:16 UTC 2014
#16024: Conditional Comments for JS
-------------------------------------+-----------------------------
Reporter: filosofo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Script Loader | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: template
-------------------------------------+-----------------------------
Comment (by kevdotbadger):
It's kind of frustrating that there's major inconsistancies between
$wp_scripts->add_data and $wp_styles->add_data. It's also a pain that you
can use wp_register/enqueue_styles and wp_register/enqueue_scripts to
includes almost everything, then use wp_head() to print them out, THEN
you're forced to manually add the conditional comments for scripts because
of the inconsistency. georgestephanis's patch works great, and it was
posted 18 months ago.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16024#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list