[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 16:22:50 UTC 2019
#45441: wp_set_script_translations() does not support text domains other than
"messages"
--------------------------+-------------------------
Reporter: swissspidy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0.3
Component: I18N | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+-------------------------
Comment (by ocean90):
In [changeset:"44403" 44403]:
{{{
#!CommitTicketReference repository="" revision="44403"
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.
Props swissspidy.
See #45441.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45441#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list