[wp-trac] [WordPress Trac] #50600: Use wp.i18n for translatable strings in wp-admin/js/widgets.js
WordPress Trac
noreply at wordpress.org
Tue Jul 7 16:59:37 UTC 2020
#50600: Use wp.i18n for translatable strings in wp-admin/js/widgets.js
-------------------------+-------------------------
Reporter: ocean90 | Owner: ocean90
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.5
Component: I18N | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses: javascript
-------------------------+-------------------------
Changes (by ocean90):
* owner: (none) => ocean90
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48387" 48387]:
{{{
#!CommitTicketReference repository="" revision="48387"
I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/widgets.js`.
This removes the usage of `$scripts->add_inline_script()` for passing
translations to the script and instead adds the translatable strings in
the script directly through the use of `wp.i18n` and its utilities.
Fixes #50600.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50600#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list