[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function
WordPress Trac
noreply at wordpress.org
Tue Oct 25 10:16:33 UTC 2016
#26511: Introduce a locale-switching function
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner: swissspidy
Type: feature request | Status: accepted
Priority: high | Milestone: 4.7
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note |
-------------------------------------------------+-------------------------
Comment (by swissspidy):
The `$l10n` array should obviously not be modified while looping over it.
[attachment:26511.13.diff] fixes this by copying the array first.
If copying the whole array takes too long, we could also just loop over
`array_keys( $l10n )` and then use `$l10n[ $domain ]->get_filename()`.
Travis CI build: https://travis-
ci.org/aaronjorbin/develop.wordpress/builds/170410107
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26511#comment:90>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list