[wp-trac] [WordPress Trac] #16024: Conditional Comments for JS

WordPress Trac noreply at wordpress.org
Sun Dec 21 20:57:15 UTC 2014


#16024: Conditional Comments for JS
-------------------------------------------------+-------------------------
 Reporter:  filosofo                             |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Script Loader                        |  Release
 Severity:  normal                               |     Version:  3.1
 Keywords:  has-patch needs-testing dev-         |  Resolution:
  feedback                                       |     Focuses:  template
-------------------------------------------------+-------------------------

Comment (by kevdotbadger):

 I think the major problem was the fact that the style loader had this
 built in (with `add_data`), but this is another WP inconsistency.

 Saying we could write a plugin, or a function in our theme to take care of
 this is a little silly, as most bugs could be fixed by writing a function.
 We want this in the core just like the style loader has.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16024#comment:78>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list