From 9240a9350dc14137c138d7dd0cd8e5459de14f30 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 10 Jul 2023 22:04:24 +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. Built from https://develop.svn.wordpress.org/trunk@56188 git-svn-id: http://core.svn.wordpress.org/trunk@55700 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index 58eacc0455..c7da87ed96 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index cd13e0f2cd..c789734a88 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta3-56187'; +$wp_version = '6.3-beta3-56188'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.