REST API: Add en_US to the locales enum.

Props ocean90.
Fixes #38528. 

Built from https://develop.svn.wordpress.org/trunk@39096


git-svn-id: http://core.svn.wordpress.org/trunk@39038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Joe Hoyle 2016-11-02 21:21:32 +00:00
parent 9bc3830845
commit 37858faf96
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-beta1-39095';
$wp_version = '4.7-beta1-39096';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.