Opened 6 years ago
Closed 6 years ago
#50408 closed defect (bug) (fixed)
Update moment.js lib to its latest version
| Reported by: | yoancutillas | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | External Libraries | Version: | 5.4.2 |
| Severity: | normal | Keywords: | has-dev-note |
| Cc: | Focuses: |
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)
#3
@
6 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/
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 48075: