[wp-trac] [WordPress Trac] #61341: Lack of escaping in Moment.js localization
WordPress Trac
noreply at wordpress.org
Sun Jun 2 22:33:29 UTC 2024
#61341: Lack of escaping in Moment.js localization
------------------------------+-----------------------
Reporter: swissspidy | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: low | Milestone: 6.6
Component: Script Loader | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------
Changes (by audrasjb):
* owner: (none) => audrasjb
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"58288" 58288]:
{{{
#!CommitTicketReference repository="" revision="58288"
Script Loader: Add missing escaping function to `Moment.js` string
localization.
This changeset avoids breaking the inline script added for `Moment.js`
localization if for some reason `get_user_locale()` doesn't return a
simply string.
Props swissspidy.
Fixes #61341.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61341#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list