From 52a449a093b30dd32b2cc27998650a603f50f174 Mon Sep 17 00:00:00 2001
From: hbhalodia <hit.bhalodia@rtcamp.com>
Date: Thu, 25 May 2023 11:46:28 +0530
Subject: [PATCH] Feat: update external jquery library to latest version

Trac - https://core.trac.wordpress.org/ticket/58399
---
 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.
-- 
2.36.1

