Changeset 60650 for trunk/src/wp-includes/user.php
- Timestamp:
- 08/19/2025 11:29:12 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r60644 r60650 2222 2222 } else { 2223 2223 $update = false; 2224 2225 if ( empty( $userdata['user_pass'] ) ) { 2226 wp_trigger_error( 2227 __FUNCTION__, 2228 __( 'The user_pass field is required when creating a new user. The user will need to reset their password before logging in.' ), 2229 E_USER_WARNING 2230 ); 2231 2232 // Set the password as an empty string to force the password reset flow. 2233 $userdata['user_pass'] = ''; 2234 } 2235 2224 2236 // Hash the password. 2225 2237 $user_pass = wp_hash_password( $userdata['user_pass'] );
Note: See TracChangeset
for help on using the changeset viewer.