Changeset 52058 for trunk/src/wp-includes/user.php
- Timestamp:
- 11/08/2021 10:36:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r51943 r52058 3045 3045 update_user_meta( $user_id, 'default_password_nag', true ); // Set up the password change nag. 3046 3046 3047 if ( ! empty( $_COOKIE['wp_lang'] ) ) { 3048 $wp_lang = sanitize_text_field( $_COOKIE['wp_lang'] ); 3049 if ( in_array( $wp_lang, get_available_languages(), true ) ) { 3050 update_user_meta( $user_id, 'locale', $wp_lang ); // Set user locale if defined on registration. 3051 } 3052 } 3053 3047 3054 /** 3048 3055 * Fires after a new user registration has been recorded.
Note: See TracChangeset
for help on using the changeset viewer.