WordPress.org

Make WordPress Core

Ticket #47478: 47478-2.diff

File 47478-2.diff, 2.0 KB (added by priyankkpatel, 5 weeks ago)

Final patch including changes in package.json, package-lock.json and wp-includes/script-loader.php

  • package-lock.json

     package-lock.json                 | 6 +++---
     package.json                      | 2 +-
     src/wp-includes/script-loader.php | 2 +-
     3 files changed, 5 insertions(+), 5 deletions(-)
    
    diff --git a/package-lock.json b/package-lock.json
    index 2194623736..1c8377dac0 100644
    a b  
    21382138                        "dev": true
    21392139                },
    21402140                "backbone": {
    2141                         "version": "1.3.3",
    2142                         "resolved": "https://registry.npmjs.org/backbone/-/backbone-1.3.3.tgz",
    2143                         "integrity": "sha1-TMgOp8sWMaxHSInOQPL4vGg7KZk=",
     2141                        "version": "1.4.0",
     2142                        "resolved": "https://registry.npmjs.org/backbone/-/backbone-1.4.0.tgz",
     2143                        "integrity": "sha512-RLmDrRXkVdouTg38jcgHhyQ/2zjg7a8E6sz2zxfz21Hh17xDJYUHBZimVIt5fUyS8vbfpeSmTL3gUjTEvUV3qQ==",
    21442144                        "requires": {
    21452145                                "underscore": ">=1.8.3"
    21462146                        }
  • package.json

    diff --git a/package.json b/package.json
    index f1a7f6f7aa..d58306f42d 100644
    a b  
    9393                "@wordpress/url": "2.5.0",
    9494                "@wordpress/viewport": "2.3.0",
    9595                "@wordpress/wordcount": "2.2.0",
    96                 "backbone": "1.3.3",
     96                "backbone": "1.4.0",
    9797                "clipboard": "2.0.4",
    9898                "element-closest": "^2.0.2",
    9999                "formdata-polyfill": "3.0.13",
  • src/wp-includes/script-loader.php

    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index a9f78370d9..f92e915be3 100644
    a b function wp_default_scripts( &$scripts ) { 
    11641164        did_action( 'init' ) && $scripts->add_data( 'json2', 'conditional', 'lt IE 8' );
    11651165
    11661166        $scripts->add( 'underscore', "/wp-includes/js/underscore$dev_suffix.js", array(), '1.8.3', 1 );
    1167         $scripts->add( 'backbone', "/wp-includes/js/backbone$dev_suffix.js", array( 'underscore', 'jquery' ), '1.2.3', 1 );
     1167        $scripts->add( 'backbone', "/wp-includes/js/backbone$dev_suffix.js", array( 'underscore', 'jquery' ), '1.4.0', 1 );
    11681168
    11691169        $scripts->add( 'wp-util', "/wp-includes/js/wp-util$suffix.js", array( 'underscore', 'jquery' ), false, 1 );
    11701170        did_action( 'init' ) && $scripts->localize(