From 57ab21fb510fc2775f51f6ccf62859ca8d15f117 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 10 Jul 2023 22:02:31 +0000 Subject: [PATCH] Twenty Seventeen: Use `wp_register_script()` to register HTML5 Shiv script. This replaces `wp_register_style()` with `wp_register_script()`. Props sabernhardt. Fixes #56699. git-svn-id: https://develop.svn.wordpress.org/trunk@56188 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentyseventeen/functions.php b/src/wp-content/themes/twentyseventeen/functions.php index 58eacc0455..c7da87ed96 100644 --- a/src/wp-content/themes/twentyseventeen/functions.php +++ b/src/wp-content/themes/twentyseventeen/functions.php @@ -473,7 +473,7 @@ function twentyseventeen_scripts() { wp_style_add_data( 'twentyseventeen-ie8', 'conditional', 'lt IE 9' ); // Register the html5 shiv. - wp_register_style( 'html5', get_theme_file_uri( '/assets/js/html5.js' ), array(), '20161020' ); + wp_register_script( 'html5', get_theme_file_uri( '/assets/js/html5.js' ), array(), '20161020' ); wp_script_add_data( 'html5', 'conditional', 'lt IE 9' ); // Skip-link fix is no longer enqueued by default.