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
|
b
|
|
16928 | 16928 | } |
16929 | 16929 | }, |
16930 | 16930 | "jquery": { |
16931 | | "version": "3.6.4", |
16932 | | "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.4.tgz", |
16933 | | "integrity": "sha512-v28EW9DWDFpzcD9O5iyJXg3R3+q+mET5JhnjJzQUZMHOv67bpSIHq81GEYpPNZHG+XXHsfSme3nxp/hndKEcsQ==" |
| 16931 | "version": "3.7.0", |
| 16932 | "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.0.tgz", |
| 16933 | "integrity": "sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==" |
16934 | 16934 | }, |
16935 | 16935 | "jquery-color": { |
16936 | 16936 | "version": "2.2.0", |
diff --git a/package.json b/package.json
index 78725c7fe4..d6c142c48e 100644
a
|
b
|
|
141 | 141 | "formdata-polyfill": "4.0.10", |
142 | 142 | "hoverintent": "2.2.1", |
143 | 143 | "imagesloaded": "4.1.4", |
144 | | "jquery": "3.6.4", |
| 144 | "jquery": "3.7.0", |
145 | 145 | "jquery-color": "2.2.0", |
146 | 146 | "jquery-form": "4.3.0", |
147 | 147 | "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
|
b
|
function wp_default_scripts( $scripts ) { |
822 | 822 | |
823 | 823 | // jQuery. |
824 | 824 | // The unminified jquery.js and jquery-migrate.js are included to facilitate debugging. |
825 | | $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '3.6.4' ); |
826 | | $scripts->add( 'jquery-core', "/wp-includes/js/jquery/jquery$suffix.js", array(), '3.6.4' ); |
| 825 | $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '3.7.0' ); |
| 826 | $scripts->add( 'jquery-core', "/wp-includes/js/jquery/jquery$suffix.js", array(), '3.7.0' ); |
827 | 827 | $scripts->add( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '3.4.0' ); |
828 | 828 | |
829 | 829 | // Full jQuery UI. |