[wp-trac] [WordPress Trac] #38528: Add 'locale' as an attribute on the User Resource
WordPress Trac
noreply at wordpress.org
Wed Nov 2 04:58:59 UTC 2016
#38528: Add 'locale' as an attribute on the User Resource
--------------------------------------+-----------------------
Reporter: danielbachhuber | Owner: joehoyle
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Changes (by joehoyle):
* keywords: needs-unit-tests has-patch => has-patch has-unit-tests
Comment:
New patch with support for updating the user's local. Also, I changed to
use an ENUM of available languages, so this means there's no need for
sanitization as only values in `get_available_languages()` are then
allowed.
Added a couple more tests too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38528#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list