[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
Wed Jan 13 13:22:49 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:  accepted
 Priority:  normal                  |   Milestone:  4.5
Component:  I18N                    |     Version:  3.0
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+-------------------------
Changes (by ocean90):

 * keywords:  dev-feedback needs-refresh => dev-feedback has-patch
 * milestone:  Future Release => 4.5


Comment:

 Looking at https://core.trac.wordpress.org/attachment/ticket/35442/35442
 %20is_textdomain_loaded-unit-test.patch and it's not the result I'd expect
 from `is_textdomain_loaded()`.

 I think this needs to be revisited. [attachment:21319.2.diff] is an
 updated patch and combines [attachment:21319.diff],
 [attachment:21319-unittests.diff] and the unit test from #35442 by @jrf.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21319#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list