Opened 2 years ago

Last modified 4 weeks ago

#16024 new enhancement

Conditional Comments for JS — at Initial Version

Reported by: filosofo Owned by:
Priority: normal Milestone: Future Release
Component: Template Version: 3.1
Severity: normal Keywords: has-patch needs-testing
Cc: ocean90, chip@…, Seags, 24-7@…, georgemamadashvili@…, jeremy.felt@…, ehitter@…, wordpress@…, pizzli, obenland@…, gabriel.koen@…, scott@…, CharlesKakiDCM, lancewillett, Ken@…, travis@…, curtiss@…, sepster, mercijavier@…, j.yzbek@…, maor@…, flix, desrosj@…, michael@…, edward.caissie@…, sabreuse, pauldewouters@…, erick@…, morgan.benton@…, leho@…, wedi, philip@…

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.