[wp-trac] [WordPress Trac] #49505: wpWidgets.l10n.widgetAdded string was unintentionally removed in 5.0 causing js error
WordPress Trac
noreply at wordpress.org
Mon Feb 24 22:00:11 UTC 2020
#49505: wpWidgets.l10n.widgetAdded string was unintentionally removed in 5.0
causing js error
-----------------------------+-----------------------------
Reporter: garrett-eclipse | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 5.0
Severity: normal | Keywords:
Focuses: accessibility |
-----------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49505>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list