From 03290de92d6b63b7198c7f31217844983d531c6c Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Mon, 28 Aug 2023 17:12:46 +0000 Subject: [PATCH] External Libraries: Update jQuery to version 3.7.1. This release fixes a regression from jQuery 3.6.0 that resulted in rounded dimensions for `` elements in Chrome and Safari. Also, a (mostly) internal Sizzle method, `jQuery.find.tokenize` that was on the jQuery object was accidentally removed when they removed Sizzle in jQuery 3.7.0. That method has been restored. References: - https://blog.jquery.com/2023/08/28/jquery-3-7-1-released-reliable-table-row-dimensions/ - https://github.com/jquery/jquery/compare/3.7.0...3.7.1 Follow-up to [49101], [50445], [50520], [54202], [55012], [55491], [55860]. Props TobiasBg, jorbin. Fixes #59227. git-svn-id: https://develop.svn.wordpress.org/trunk@56481 602fd350-edb4-49c9-b593-d223f7449a82 --- package-lock.json | 8 ++++---- package.json | 2 +- src/wp-includes/script-loader.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index a11880549e..c5870c18d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -80,7 +80,7 @@ "hoverintent": "2.2.1", "imagesloaded": "5.0.0", "is-plain-object": "5.0.0", - "jquery": "3.7.0", + "jquery": "3.7.1", "jquery-color": "2.2.0", "jquery-form": "4.3.0", "jquery-hoverintent": "1.10.2", @@ -21330,9 +21330,9 @@ } }, "node_modules/jquery": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.0.tgz", - "integrity": "sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==" + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", + "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" }, "node_modules/jquery-color": { "version": "2.2.0", diff --git a/package.json b/package.json index 1112560e7f..6bd4be3f50 100644 --- a/package.json +++ b/package.json @@ -147,7 +147,7 @@ "hoverintent": "2.2.1", "imagesloaded": "5.0.0", "is-plain-object": "5.0.0", - "jquery": "3.7.0", + "jquery": "3.7.1", "jquery-color": "2.2.0", "jquery-form": "4.3.0", "jquery-hoverintent": "1.10.2", diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 205cedda72..3cbcb89967 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -833,8 +833,8 @@ function wp_default_scripts( $scripts ) { * jQuery. * The unminified jquery.js and jquery-migrate.js are included to facilitate debugging. */ - $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '3.7.0' ); - $scripts->add( 'jquery-core', "/wp-includes/js/jquery/jquery$suffix.js", array(), '3.7.0' ); + $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '3.7.1' ); + $scripts->add( 'jquery-core', "/wp-includes/js/jquery/jquery$suffix.js", array(), '3.7.1' ); $scripts->add( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '3.4.1' ); /*