[wp-trac] [WordPress Trac] #21319: is_textdomain_loaded() returns true even if there are no translations for the domain
WordPress Trac
noreply at wordpress.org
Tue Feb 16 21:14:48 UTC 2016
#21319: is_textdomain_loaded() returns true even if there are no translations for
the domain
-------------------------------------------------+-------------------------
Reporter: nacin | Owner: nbachiyski
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.5
Component: I18N | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: dev-feedback has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by ocean90):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"36538"]:
{{{
#!CommitTicketReference repository="" revision="36538"
i18n: Prevent `is_textdomain_loaded()` from returning true even if there
are no translations for the domain.
In `get_translations_for_domain()` don't fill the global `$l10n` with
`NOOP_Translations` instances, return a `NOOP_Translations` instance
instead.
Props nacin, jrf.
Fixes #21319.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21319#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list