Changeset 38705 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 10/03/2016 07:03:41 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r38369 r38705 95 95 $user->admin_color = isset( $_POST['admin_color'] ) ? sanitize_text_field( $_POST['admin_color'] ) : 'fresh'; 96 96 $user->show_admin_bar_front = isset( $_POST['admin_bar_front'] ) ? 'true' : 'false'; 97 $user->locale = ''; 98 99 if ( isset( $_POST['locale'] ) ) { 100 $locale = sanitize_text_field( $_POST['locale'] ); 101 if ( ! in_array( $locale, get_available_languages(), true ) ) { 102 $locale = ''; 103 } 104 105 $user->locale = ( '' === $locale ) ? 'en_US' : $locale; 106 } 97 107 } 98 108
Note: See TracChangeset
for help on using the changeset viewer.