[wp-trac] [WordPress Trac] #63821: Proposal: Drop support for IE conditional scripts and styles
WordPress Trac
noreply at wordpress.org
Thu Nov 20 18:29:57 UTC 2025
#63821: Proposal: Drop support for IE conditional scripts and styles
-------------------------------------------------+-------------------------
Reporter: jonsurrell | Owner: joedolson
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.9
Component: General | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
testing has-test-info reviewing has-dev-note | javascript, css
-------------------------------------------------+-------------------------
Changes (by afragen):
* status: closed => reopened
* resolution: fixed =>
Comment:
== Bug Report
=== Description
With default theme Twenty Sixteen multiple deprecation notices fire.
=== Environment
- WordPress: 6.9-RC2
- PHP: 8.3.23
- Server: nginx/1.26.1
- Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.3.23)
- Browser: Safari 26.1
- OS: macOS
- Theme: Twenty Sixteen 3.6
- MU Plugins: None activated
- Plugins:
* Query Monitor 3.20.0
* Test Reports 1.2.1
* WordPress Beta Tester 4.0.0
* WP Debugging 2.12.2
=== Steps to Reproduce
1. Install WP 6.9-RC2
2. Install/activate Twenty Sixteen
3. Set `WP_DEBUG` to true
4. Visit home page.
x. 🐞 Bug occurs.
=== Expected Results
1. ✅ What should happen.
No errors
=== Actual Results
1. ❌ What actually happened.
Errors from TwentySixteen functions.php in `twentysixteen_scripts()` where
IE conditionals still exist.
=== Additional Notes
I suspect removing these commands will solve the issue.
{{{
// Load the Internet Explorer specific stylesheet.
wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri()
. '/css/ie.css', array( 'twentysixteen-style' ), '20170530' );
wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10'
);
// Load the Internet Explorer 8 specific stylesheet.
wp_enqueue_style( 'twentysixteen-ie8',
get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-
style' ), '20170530' );
wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9'
);
// Load the Internet Explorer 7 specific stylesheet.
wp_enqueue_style( 'twentysixteen-ie7',
get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-
style' ), '20170530' );
wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8'
);
and
wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE
9' );
}}}
Do we even need the IE specific stylesheets?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63821#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list