External Libraries: Update Moment.js to 2.26.0.
Changelog: https://github.com/moment/moment/compare/2.22.2...2.26.0 This commit also fixes a deprecation warning regarding the usage of `moment.locale()` to set locale properties. As of Moment.js 2.12.0, `moment.locale()` is deprecated and `moment.updateLocale()` should be used instead. Additionally, minimize `moment.js` as part of build process to remove the source map reference. This avoids a `sourceMappingURL` being in the minified file, as we don't ship source maps. Props yoancutillas, SergeyBiryukov. Fixes #50408. Built from https://develop.svn.wordpress.org/trunk@48075 git-svn-id: http://core.svn.wordpress.org/trunk@47842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1a767ac06f
commit
d81302511d
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -95,7 +95,7 @@ function wp_default_packages_vendor( $scripts ) {
|
|||
$vendor_scripts_versions = array(
|
||||
'react' => '16.9.0',
|
||||
'react-dom' => '16.9.0',
|
||||
'moment' => '2.22.2',
|
||||
'moment' => '2.26.0',
|
||||
'lodash' => '4.17.15',
|
||||
'wp-polyfill-fetch' => '3.0.0',
|
||||
'wp-polyfill-formdata' => '3.0.12',
|
||||
|
@ -139,7 +139,7 @@ function wp_default_packages_vendor( $scripts ) {
|
|||
did_action( 'init' ) && $scripts->add_inline_script(
|
||||
'moment',
|
||||
sprintf(
|
||||
"moment.locale( '%s', %s );",
|
||||
"moment.updateLocale( '%s', %s );",
|
||||
get_user_locale(),
|
||||
wp_json_encode(
|
||||
array(
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-48074';
|
||||
$wp_version = '5.5-alpha-48075';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue