Opened 4 years ago
Closed 4 years ago
#50408 closed defect (bug) (fixed)
Update moment.js lib to its latest version
Reported by: | yoancutillas | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | 5.4.2 |
Component: | External Libraries | Keywords: | has-dev-note |
Focuses: | Cc: |
Description
Hello,
The core-bundled momentjs library hasn't been updated in two years (2.22.2 - Jun 1, 2018).
JQMigrate displays a deprecation warning:
Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.
And some plugins and themes encounter javascript fatal errors (blocking) because of it:
- https://wordpress.org/support/topic/cannot-edit-calendar-or-activities/
- https://wordpress.org/support/topic/moment-js-integration-conflict/
- https://wordpress.org/support/topic/minified-moment-js-library-causes-conflict-with-the-events-calendar-plugin/
- https://wordpress.org/support/topic/calendar-not-loading-9/
Is it possible to update momentjs to its latest version (currently 2.26.0 - May 20, 2020)?
wp-includes\js\dist\vendor\moment.js wp-includes\js\dist\vendor\moment.min.js
Change History (6)
#2
@
4 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
#3
@
4 years ago
- Keywords has-dev-note added
This was noted in the following dev note: https://make.wordpress.org/core/2020/07/01/external-library-updates-in-wordpress-5-5-call-for-testing/
#4
@
4 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
There was a new version (v2.27.0) of moment.js released two weeks ago. Let us try to update to this version before the beta.
Note: See
TracTickets for help on using
tickets.
In 48075: