[wp-trac] [WordPress Trac] #31319: Use first translation iso instead of by key '1'

WordPress Trac noreply at wordpress.org
Mon Feb 23 08:54:10 UTC 2015


#31319: Use first translation iso instead of by key '1'
--------------------------+-----------------------------
 Reporter:  barrykooij    |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2
Component:  I18N          |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by dd32):

 Replying to [comment:9 dd32]:
 > If it makes sense to, we could set the API to return
 `$language['iso'][1] = $language['iso'][1] ? $language['iso'][1] :
 $language['iso'][2]` instead.

 I did this for WP < 4.2 requests.

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


More information about the wp-trac mailing list