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
This commit is contained in:
Jb Audras
2023-07-10 22:02:31 +00:00
parent b1775f327d
commit 57ab21fb51

View File

@@ -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.