From d46c47f0fdd43ad67743fb390187c4e32876d8a3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 26 May 2023 11:31:14 +0000 Subject: [PATCH] External Libraries: Update jQuery to version 3.7.0. This release includes bug fixes, a new `.uniqueSort()` method, and a performance improvement for some use cases when using manipulation methods like `.append()`. References: * [https://blog.jquery.com/2023/05/11/jquery-3-7-0-released-staying-in-order/ jQuery 3.7.0 release notes] * [https://github.com/jquery/jquery/compare/3.6.4...3.7.0 Full list of changes in jQuery 3.7.0] Follow-up to [49101], [50445], [50520], [54202], [55012], [55491]. Props mgol, jorbin, hbhalodia, desrosj, TobiasBg, audrasjb, mukesh27, naeemhaque, nuhel, SergeyBiryukov. Fixes #58083. git-svn-id: https://develop.svn.wordpress.org/trunk@55860 602fd350-edb4-49c9-b593-d223f7449a82 --- package-lock.json | 6 +++--- package.json | 2 +- src/wp-includes/script-loader.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index e714d28ce7..395a0643fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16928,9 +16928,9 @@ } }, "jquery": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.4.tgz", - "integrity": "sha512-v28EW9DWDFpzcD9O5iyJXg3R3+q+mET5JhnjJzQUZMHOv67bpSIHq81GEYpPNZHG+XXHsfSme3nxp/hndKEcsQ==" + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.0.tgz", + "integrity": "sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==" }, "jquery-color": { "version": "2.2.0", diff --git a/package.json b/package.json index 78725c7fe4..d6c142c48e 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "formdata-polyfill": "4.0.10", "hoverintent": "2.2.1", "imagesloaded": "4.1.4", - "jquery": "3.6.4", + "jquery": "3.7.0", "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 786e18f6d4..875901302e 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -822,8 +822,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.6.4' ); - $scripts->add( 'jquery-core', "/wp-includes/js/jquery/jquery$suffix.js", array(), '3.6.4' ); + $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-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '3.4.0' ); // Full jQuery UI.