Ticket #38798: 38798.patch
File 38798.patch, 555 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/includes/user.php
100 100 $locale = sanitize_text_field( $_POST['locale'] ); 101 101 if ( 'site-default' === $locale ) { 102 102 $locale = ''; 103 } elseif ( '' === $locale ) { 104 $locale = 'en_US'; 103 105 } elseif ( ! in_array( $locale, get_available_languages(), true ) ) { 104 $locale = ' en_US';106 $locale = ''; 105 107 } 106 108 107 109 $user->locale = $locale;