WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 7 weeks ago

#16024 closed enhancement

Conditional Comments for JS — at Initial Version

Reported by: filosofo Owned by:
Milestone: 4.2 Priority: normal
Severity: normal Version: 3.1
Component: Script Loader Keywords: has-patch needs-testing dev-feedback
Focuses: template Cc:

Description

Currently, we can add IE conditional comments for CSS but not JS. That seems unnecessarily inconsistent.

Patch would allow us to something like:

wp_enqueue_script( 'pngfix-handle' );
$wp_scripts->add_data( 'pngfix-handle', 'conditional', 'IE 6' );

Change History (1)

Note: See TracTickets for help on using tickets.