From 45dd5873620678e2e6a97ef8193885867c37f78e Mon Sep 17 00:00:00 2001 From: rg755421 Date: Fri, 25 Sep 2026 16:48:48 +0545 Subject: [PATCH] Fix - Deprecated IE-conditional html5shiv enqueue firing a notice on every page load (WP 6.9+) Co-Authored-By: Claude Opus 5.5 --- inc/enqueue-scripts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/enqueue-scripts.php b/inc/enqueue-scripts.php index 22274b3c..8d239204 100644 --- a/inc/enqueue-scripts.php +++ b/inc/enqueue-scripts.php @@ -121,8 +121,8 @@ function spacious_scripts_styles_method() { wp_enqueue_script( 'spacious-custom', SPACIOUS_JS_URL . '/spacious-custom.js', array( 'jquery' ) ); - wp_enqueue_script( 'html5', SPACIOUS_JS_URL . '/html5shiv.min.js', true ); - wp_script_add_data( 'html5', 'conditional', 'lte IE 8' ); + // Empty handle kept so scripts that list 'html5' as a dependency still load. + wp_register_script( 'html5', false, array(), SPACIOUS_THEME_VERSION, false ); } add_action( 'wp_enqueue_scripts', 'spacious_scripts_styles_method' );