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

WordPress Trac noreply at wordpress.org
Fri Feb 13 10:13:36 UTC 2015


#31319: Use first translation iso instead of by key '1'
--------------------------+-----------------------------
 Reporter:  barrykooij    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The list of available translations on options-general.php uses
 `$translation['iso'][1]` which results into a notice when 1 isn't set
 (which was the case for me). This patch simply gets the first element from
 the iso array, which 1 appeared to be anyway.


 Tested and patch made on trunk. Let me know if you need more information

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


More information about the wp-trac mailing list