Make WordPress Core

Ticket #47478: 47478.diff

File 47478.diff, 1.3 KB (added by priyankkpatel, 6 years ago)

Patch for wp-includes/script-loader.php

  • package.json

     package.json                      | 2 +-
     src/wp-includes/script-loader.php | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    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(