Repository navigation
Fix - Stop registering the IE-conditional html5shiv script that fires a deprecation notice - #86
Conversation
… a deprecation notice wp_script_add_data( 'html5shiv', 'conditional', 'lte IE 8' ) fires a deprecation notice on every page since WordPress 6.9, and the script is no longer printed at all. Replaced with an empty html5shiv handle, as in Spacious and Radiate, so scripts that depend on it still load. js/html5shiv.js stays so direct URLs don't 404. Same fix as themegrill/accelerate-pro#21. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Compatibility and CI coverage issues remain unresolved.
Review effort: Lite
Findings: None
What changed in this PR
This PR removes the deprecated IE-conditional html5shiv registration and adds regression coverage for PHP notices.
Changes:
- Registers an empty
html5shivdependency handle. - Adds a homepage smoke test for PHP notices and deprecations.
| File | Review summary |
|---|---|
inc/functions.php |
Preserve the existing conditional shim for pre-6.9 WordPress; the current change removes IE8 support there. |
tests/e2e/specs/smoke/no-php-notices.spec.ts |
Align the test area with changed-file coverage and assert a successful HTTP response. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…to, and assert a 200 The area decides whether the suite runs this spec for a change to inc/functions.php; it was tagged with an area that file doesn't map to. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Re the Copilot overview notes:
|
|
@claudegrill suite |
|
This now conflicts with develop: #57 was merged and edits the same html5shiv lines in Could you rebase on develop and replace that block (the always-loaded |
# Conflicts: # inc/functions.php
…merged Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Same fix as themegrill/accelerate-pro#113 (reported by @iamprazol in themegrill/accelerate-pro#21), Spacious (themegrill/spacious#151) and Radiate (themegrill/radiate#73).
Since WordPress 6.9,
wp_script_add_data( 'html5shiv', 'conditional', 'lte IE 8' )fires a deprecation notice on every page, and the script is no longer printed at all. Replaced with an emptyhtml5shivhandle, so scripts that list it as a dependency still load.js/html5shiv.jsstays, so direct URLs don't 404.Regression: page HTML on WP 6.9+ loses only the IE-only
html5shiv.jstag; a script depending onhtml5shivstill prints. The@freshspec fails ondevelop(it printshtml5shiv.jsfor every visitor), passes here.Replaces #57's approach: #57 (merged) kept the enqueue and only skipped the IE condition on WP 6.9+, so
html5shiv.jsloaded for every visitor. This PR replaces that whole block (the enqueue and theversion_comparebranch) with the empty handle. Mergeddevelopin to resolve the conflict.Changelog: Fix - Deprecation notice from the IE-only html5shiv script on WordPress 6.9+.
🤖 Generated with Claude Code