Make WordPress Core


Ignore:
Timestamp:
11/02/2016 09:20:12 PM (8 years ago)
Author:
joehoyle
Message:

REST API: Add en_US to the locales enum.

Props ocean90.
Fixes #38528.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r39092 r39096  
    10701070                    'description' => __( 'Locale for the resource.' ),
    10711071                    'type'        => 'string',
    1072                     'enum'        => get_available_languages(),
     1072                    'enum'        => array_merge( array( 'en_US' ), get_available_languages() ),
    10731073                    'context'     => array( 'edit' ),
    10741074                ),
Note: See TracChangeset for help on using the changeset viewer.