WordPress.org

Make WordPress Core

Changeset 39269


Ignore:
Timestamp:
11/16/2016 08:11:12 PM (18 months ago)
Author:
ocean90
Message:

Users: In edit_user() fall back to site's locale instead of en_US for invalid user locales.

See #38632, #29783.
Fixes #38798.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r39169 r39269  
    101101            if ( 'site-default' === $locale ) {
    102102                $locale = '';
     103            } elseif ( '' === $locale ) {
     104                $locale = 'en_US';
    103105            } elseif ( ! in_array( $locale, get_available_languages(), true ) ) {
    104                 $locale = 'en_US';
     106                $locale = '';
    105107            }
    106108
Note: See TracChangeset for help on using the changeset viewer.