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; };
|
||||
}()));
|
||||
}(this, (function () {
|
||||
// Underscore.js 1.13.6
|
||||
// Underscore.js 1.13.7
|
||||
// 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.
|
||||
|
||||
// Current version.
|
||||
var VERSION = '1.13.6';
|
||||
var VERSION = '1.13.7';
|
||||
|
||||
// Establish the root object, `window` (`self`) in the browser, `global`
|
||||
// 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 11, the most common among them, this problem also applies to
|
||||
// `Map`, `WeakMap` and `Set`.
|
||||
var hasStringTagBug = (
|
||||
supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))
|
||||
// Also, there are cases where an application can override the native
|
||||
// `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));
|
||||
|
||||
|
@ -159,11 +162,13 @@
|
|||
|
||||
// In IE 10 - Edge 13, we need a different heuristic
|
||||
// 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);
|
||||
}
|
||||
|
||||
var isDataView$1 = (hasStringTagBug ? ie10IsDataView : isDataView);
|
||||
var isDataView$1 = (hasDataViewBug ? alternateIsDataView : isDataView);
|
||||
|
||||
// Is a given value an array?
|
||||
// Delegates to ECMA5's native `Array.isArray`.
|
||||
|
@ -376,7 +381,7 @@
|
|||
var className = toString.call(a);
|
||||
if (className !== toString.call(b)) return false;
|
||||
// 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;
|
||||
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' );
|
||||
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( 'wp-util', "/wp-includes/js/wp-util$suffix.js", array( 'underscore', 'jquery' ), false, 1 );
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue