REST API: Add en_US to the locales enum.

Props ocean90.
Fixes #38528. 


git-svn-id: https://develop.svn.wordpress.org/trunk@39096 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Hoyle
2016-11-02 21:20:12 +00:00
parent 4dfb71c3b5
commit e78230b39a
2 changed files with 15 additions and 1 deletions
@@ -1069,7 +1069,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
'locale' => array(
'description' => __( 'Locale for the resource.' ),
'type' => 'string',
'enum' => get_available_languages(),
'enum' => array_merge( array( 'en_US' ), get_available_languages() ),
'context' => array( 'edit' ),
),
'nickname' => array(