diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php
index f99c50d85c..258a3bb7e4 100644
|
a
|
b
|
function edit_user( $user_id = 0 ) { |
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| | 115 | if ( $update ) { |
| | 116 | $user->locale = ''; |
| | 117 | } |
| | 118 | |
| 115 | 119 | if ( isset( $_POST['locale'] ) ) { |
| 116 | 120 | $locale = sanitize_text_field( $_POST['locale'] ); |
| 117 | 121 | if ( 'site-default' === $locale ) { |
| … |
… |
function edit_user( $user_id = 0 ) { |
| 130 | 134 | $user->syntax_highlighting = isset( $_POST['syntax_highlighting'] ) && 'false' === $_POST['syntax_highlighting'] ? 'false' : 'true'; |
| 131 | 135 | $user->admin_color = isset( $_POST['admin_color'] ) ? sanitize_text_field( $_POST['admin_color'] ) : 'fresh'; |
| 132 | 136 | $user->show_admin_bar_front = isset( $_POST['admin_bar_front'] ) ? 'true' : 'false'; |
| 133 | | $user->locale = ''; |
| 134 | 137 | } |
| 135 | 138 | |
| 136 | 139 | $user->comment_shortcuts = isset( $_POST['comment_shortcuts'] ) && 'true' == $_POST['comment_shortcuts'] ? 'true' : ''; |