[wp-trac] [WordPress Trac] #38528: Add 'locale' as an attribute on the User Resource

WordPress Trac noreply at wordpress.org
Wed Nov 2 08:26:58 UTC 2016


#38528: Add 'locale' as an attribute on the User Resource
----------------------------------------+-----------------------
 Reporter:  danielbachhuber             |       Owner:  joehoyle
     Type:  enhancement                 |      Status:  reopened
 Priority:  normal                      |   Milestone:  4.7
Component:  REST API                    |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-unit-tests needs-patch  |     Focuses:
----------------------------------------+-----------------------
Changes (by ocean90):

 * keywords:  has-patch has-unit-tests => has-unit-tests needs-patch
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 `get_available_languages()` doesn't return `en_US`, see
 [attachment:38528.3.diff] for a failing test. I'm currently not sure if an
 empty string (to force using `get_locale()` in `get_user_locale()`) should
 be supported as well.

 cc: @swissspidy

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


More information about the wp-trac mailing list