Changeset 59557
- Timestamp:
- 12/23/2024 08:04:18 PM (16 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ms-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r59512 r59557 463 463 $user_name = preg_replace( '/\s+/', '', sanitize_user( $user_name, true ) ); 464 464 465 if ( $user_name != $orig_username || preg_match( '/[^a-z0-9]/', $user_name ) ) {465 if ( $user_name !== $orig_username || preg_match( '/[^a-z0-9]/', $user_name ) ) { 466 466 $errors->add( 'user_name', __( 'Usernames can only contain lowercase letters (a-z) and numbers.' ) ); 467 467 $user_name = $orig_username;
Note: See TracChangeset
for help on using the changeset viewer.