Internal support for conditional scripts (same as existing conditional style support)
|Reported by:||jdub||Owned by:|
Although it's not exposed through the wp_enqueue_style API, you can add a conditional to the queued style (by twiddling $wp_styles) and WP_Styles::do_item will do the right thing. This is used within core to provide CSS to poopy browsers ("lt IE 7").
This patch adds similar internal-only support for script conditionals to WP_Scripts::do_item.
It might be nice to expose this in the wp_enqueue_* API at some point, but for now this will do. :-)