#49505 closed defect (bug) (fixed)
wpWidgets.l10n.widgetAdded string was unintentionally removed in 5.0 causing js error
| Reported by: | garrett-eclipse | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.4 |
| Component: | Widgets | Version: | 5.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | accessibility, javascript |
Description
Hello,
When you use the 'Add Widget' button to introduce a widget to the sidebar it throws a javascript error;
a11y.min.js?ver=2.5.1:formatted:102 Uncaught TypeError: Cannot read property 'replace' of undefined
at l (a11y.min.js?ver=2.5.1:formatted:102)
at Module.c (a11y.min.js?ver=2.5.1:formatted:124)
at widgets.min.js?ver=5.3.3-alpha-47319:formatted:341
This is caused by the widgetAdded string being missing from the wpWidgets.l10n array, this string is used for the a11y speak function but since it was accidentally removed in [44163] for #45145 an error is now thrown.
Patch incoming.
Attachments (2)
Change History (6)
#1
@
7 years ago
- Keywords has-patch needs-testing added
In 49505.diff I've reintroduced the string for widgetAdded to avoid the a11y speak error.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Reintroduces the widgetAdded string to avoid throwing a a11y speak error.