Make WordPress Core

Ticket #58083: 0001-Feat-update-external-jquery-library-to-latest-versio.2.patch

File 0001-Feat-update-external-jquery-library-to-latest-versio.2.patch, 2.3 KB (added by hbhalodia, 20 months ago)

Patch for jQuery Update to version 3.7.0

  • package-lock.json

    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  
    1692816928                        }
    1692916929                },
    1693016930                "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=="
    1693416934                },
    1693516935                "jquery-color": {
    1693616936                        "version": "2.2.0",
  • package.json

    diff --git a/package.json b/package.json
    index 78725c7fe4..d6c142c48e 100644
    a b  
    141141                "formdata-polyfill": "4.0.10",
    142142                "hoverintent": "2.2.1",
    143143                "imagesloaded": "4.1.4",
    144                 "jquery": "3.6.4",
     144                "jquery": "3.7.0",
    145145                "jquery-color": "2.2.0",
    146146                "jquery-form": "4.3.0",
    147147                "jquery-hoverintent": "1.10.2",
  • src/wp-includes/script-loader.php

    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 ) { 
    822822
    823823        // jQuery.
    824824        // 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' );
    827827        $scripts->add( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '3.4.0' );
    828828
    829829        // Full jQuery UI.