External Libraries: Update the Underscore.js library to version 1.13.7.
This updates the Underscore library from version 1.13.6 to 1.13.7. This is a minor bug fix release. The full list of changes can be found in the Underscore.js change log: https://underscorejs.org/#changelog. Props hbhalodia, aristath, desrosj, mcrisp1972. Fixes #61836. Built from https://develop.svn.wordpress.org/trunk@58880 git-svn-id: http://core.svn.wordpress.org/trunk@58276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8a164c4d9c
commit
d09e94165e
|
@ -7,13 +7,13 @@
|
||||||
exports.noConflict = function () { global._ = current; return exports; };
|
exports.noConflict = function () { global._ = current; return exports; };
|
||||||
}()));
|
}()));
|
||||||
}(this, (function () {
|
}(this, (function () {
|
||||||
// Underscore.js 1.13.6
|
// Underscore.js 1.13.7
|
||||||
// https://underscorejs.org
|
// https://underscorejs.org
|
||||||
// (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
|
// (c) 2009-2024 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
|
||||||
// Underscore may be freely distributed under the MIT license.
|
// Underscore may be freely distributed under the MIT license.
|
||||||
|
|
||||||
// Current version.
|
// Current version.
|
||||||
var VERSION = '1.13.6';
|
var VERSION = '1.13.7';
|
||||||
|
|
||||||
// Establish the root object, `window` (`self`) in the browser, `global`
|
// Establish the root object, `window` (`self`) in the browser, `global`
|
||||||
// on the server, or `this` in some virtual machines. We use `self`
|
// on the server, or `this` in some virtual machines. We use `self`
|
||||||
|
@ -150,8 +150,11 @@
|
||||||
// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.
|
// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.
|
||||||
// In IE 11, the most common among them, this problem also applies to
|
// In IE 11, the most common among them, this problem also applies to
|
||||||
// `Map`, `WeakMap` and `Set`.
|
// `Map`, `WeakMap` and `Set`.
|
||||||
var hasStringTagBug = (
|
// Also, there are cases where an application can override the native
|
||||||
supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))
|
// `DataView` object, in cases like that we can't use the constructor
|
||||||
|
// safely and should just rely on alternate `DataView` checks
|
||||||
|
var hasDataViewBug = (
|
||||||
|
supportsDataView && (!/\[native code\]/.test(String(DataView)) || hasObjectTag(new DataView(new ArrayBuffer(8))))
|
||||||
),
|
),
|
||||||
isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));
|
isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));
|
||||||
|
|
||||||
|
@ -159,11 +162,13 @@
|
||||||
|
|
||||||
// In IE 10 - Edge 13, we need a different heuristic
|
// In IE 10 - Edge 13, we need a different heuristic
|
||||||
// to determine whether an object is a `DataView`.
|
// to determine whether an object is a `DataView`.
|
||||||
function ie10IsDataView(obj) {
|
// Also, in cases where the native `DataView` is
|
||||||
|
// overridden we can't rely on the tag itself.
|
||||||
|
function alternateIsDataView(obj) {
|
||||||
return obj != null && isFunction$1(obj.getInt8) && isArrayBuffer(obj.buffer);
|
return obj != null && isFunction$1(obj.getInt8) && isArrayBuffer(obj.buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
var isDataView$1 = (hasStringTagBug ? ie10IsDataView : isDataView);
|
var isDataView$1 = (hasDataViewBug ? alternateIsDataView : isDataView);
|
||||||
|
|
||||||
// Is a given value an array?
|
// Is a given value an array?
|
||||||
// Delegates to ECMA5's native `Array.isArray`.
|
// Delegates to ECMA5's native `Array.isArray`.
|
||||||
|
@ -376,7 +381,7 @@
|
||||||
var className = toString.call(a);
|
var className = toString.call(a);
|
||||||
if (className !== toString.call(b)) return false;
|
if (className !== toString.call(b)) return false;
|
||||||
// Work around a bug in IE 10 - Edge 13.
|
// Work around a bug in IE 10 - Edge 13.
|
||||||
if (hasStringTagBug && className == '[object Object]' && isDataView$1(a)) {
|
if (hasDataViewBug && className == '[object Object]' && isDataView$1(a)) {
|
||||||
if (!isDataView$1(b)) return false;
|
if (!isDataView$1(b)) return false;
|
||||||
className = tagDataView;
|
className = tagDataView;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1039,7 +1039,7 @@ function wp_default_scripts( $scripts ) {
|
||||||
$scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2015-05-03' );
|
$scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2015-05-03' );
|
||||||
did_action( 'init' ) && $scripts->add_data( 'json2', 'conditional', 'lt IE 8' );
|
did_action( 'init' ) && $scripts->add_data( 'json2', 'conditional', 'lt IE 8' );
|
||||||
|
|
||||||
$scripts->add( 'underscore', "/wp-includes/js/underscore$dev_suffix.js", array(), '1.13.4', 1 );
|
$scripts->add( 'underscore', "/wp-includes/js/underscore$dev_suffix.js", array(), '1.13.7', 1 );
|
||||||
$scripts->add( 'backbone', "/wp-includes/js/backbone$dev_suffix.js", array( 'underscore', 'jquery' ), '1.6.0', 1 );
|
$scripts->add( 'backbone', "/wp-includes/js/backbone$dev_suffix.js", array( 'underscore', 'jquery' ), '1.6.0', 1 );
|
||||||
|
|
||||||
$scripts->add( 'wp-util', "/wp-includes/js/wp-util$suffix.js", array( 'underscore', 'jquery' ), false, 1 );
|
$scripts->add( 'wp-util', "/wp-includes/js/wp-util$suffix.js", array( 'underscore', 'jquery' ), false, 1 );
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.7-alpha-58879';
|
$wp_version = '6.7-alpha-58880';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue