WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 7 days ago

#16024 new enhancement

Conditional Comments for JS — at Version 1

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

Description (last modified by filosofo)

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

Patch would allow us to do something like the following:

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

Change History (2)

comment:1 filosofo3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.