Opened 19 months ago
Closed 19 months ago
#61341 closed defect (bug) (fixed)
Lack of escaping in Moment.js localization
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.6 | Priority: | low |
| Severity: | minor | Version: | |
| Component: | Script Loader | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
If for some reason get_user_locale() doesn't return a simply string, it can break the inline script added for Moment.js localization here: https://github.com/WordPress/wordpress-develop/blob/2c818502ea70b27c36f420112152b26bd0ebe8fe/src/wp-includes/script-loader.php#L146-L147
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 58288: