[wp-trac] [WordPress Trac] #45441: wp_set_script_translations() does not support text domains other than "messages"
WordPress Trac
noreply at wordpress.org
Sun Jan 6 17:05:29 UTC 2019
#45441: wp_set_script_translations() does not support text domains other than
"messages"
--------------------------+-------------------------
Reporter: swissspidy | Owner: ocean90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.0.3
Component: I18N | Version: 5.0
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: javascript
--------------------------+-------------------------
Changes (by ocean90):
* owner: (none) => ocean90
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"44404" 44404]:
{{{
#!CommitTicketReference repository="" revision="44404"
I18N/Script Loader: Support text domains other than "messages".
The inline JavaScript added by `WP_Scripts::print_translations()` should
check whether `locale_data.$text_domain` exists and fall back to
`locale_data.messages` otherwise.
Merge of [44403] to the 5.0 branch.
Props swissspidy.
Fixes #45441.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45441#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list