Make WordPress Core

Ticket #61836: patch-61836-3.patch

File patch-61836-3.patch, 2.6 KB (added by hbhalodia, 22 months ago)

Updated Patch with change in script loader

  • package-lock.json

    diff --git a/package-lock.json b/package-lock.json
    index af97de8dc6..f392e9064e 100644
    a b  
    9797                                "react-dom": "18.3.1",
    9898                                "react-is": "18.3.1",
    9999                                "regenerator-runtime": "0.14.1",
    100                                 "underscore": "1.13.6",
     100                                "underscore": "1.13.7",
    101101                                "whatwg-fetch": "3.6.20",
    102102                                "wicg-inert": "3.1.2"
    103103                        },
     
    3272832728                        }
    3272932729                },
    3273032730                "node_modules/underscore": {
    32731                         "version": "1.13.6",
    32732                         "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz",
    32733                         "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A=="
     32731                        "version": "1.13.7",
     32732                        "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.7.tgz",
     32733                        "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g=="
    3273432734                },
    3273532735                "node_modules/underscore.string": {
    3273632736                        "version": "3.3.5",
     
    5868858688                        "dev": true
    5868958689                },
    5869058690                "underscore": {
    58691                         "version": "1.13.6",
    58692                         "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz",
    58693                         "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A=="
     58691                        "version": "1.13.7",
     58692                        "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.7.tgz",
     58693                        "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g=="
    5869458694                },
    5869558695                "underscore.string": {
    5869658696                        "version": "3.3.5",
  • package.json

    diff --git a/package.json b/package.json
    index eedd555935..49d03a9ed3 100644
    a b  
    166166                "react-dom": "18.3.1",
    167167                "react-is": "18.3.1",
    168168                "regenerator-runtime": "0.14.1",
    169                 "underscore": "1.13.6",
     169                "underscore": "1.13.7",
    170170                "whatwg-fetch": "3.6.20",
    171171                "wicg-inert": "3.1.2"
    172172        },
  • src/wp-includes/script-loader.php

    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index 2852dc2431..7c570430df 100644
    a b function wp_default_scripts( $scripts ) { 
    10391039        $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2015-05-03' );
    10401040        did_action( 'init' ) && $scripts->add_data( 'json2', 'conditional', 'lt IE 8' );
    10411041
    1042         $scripts->add( 'underscore', "/wp-includes/js/underscore$dev_suffix.js", array(), '1.13.4', 1 );
     1042        $scripts->add( 'underscore', "/wp-includes/js/underscore$dev_suffix.js", array(), '1.13.7', 1 );
    10431043        $scripts->add( 'backbone', "/wp-includes/js/backbone$dev_suffix.js", array( 'underscore', 'jquery' ), '1.6.0', 1 );
    10441044
    10451045        $scripts->add( 'wp-util', "/wp-includes/js/wp-util$suffix.js", array( 'underscore', 'jquery' ), false, 1 );