Skip to content

Commit

Permalink
Settings: Fix changing user language
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca committed Oct 3, 2018
1 parent f1413da commit 148723c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dt-users/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ public static function update_user_contact_info() {
if ( isset( $_POST['display_name'] ) && !empty( $_POST['display_name'] ) ) {
$args['display_name'] = $args['nickname'];
}
else {
//locale
if ( isset( $_POST['locale'] ) ) {
$args['locale'] = sanitize_text_field( wp_unslash( $_POST['locale'] ) );
} else {
$args['locale'] = "en_US";
}

Expand Down

0 comments on commit 148723c

Please sign in to comment.