Changeset 33083
- Timestamp:
- 07/04/2015 05:52:46 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r32950 r33083 494 494 if ( strlen( $user_name ) < 4 ) 495 495 $errors->add('user_name', __( 'Username must be at least 4 characters.' ) ); 496 497 if ( strlen( $user_name ) > 60 ) { 498 $errors->add( 'user_name', __( 'Username may not be longer than 60 characters.' ) ); 499 } 496 500 497 501 if ( strpos( $user_name, '_' ) !== false ) -
trunk/tests/phpunit/tests/multisite/wpmuValidateUserSignup.php
r31978 r33083 27 27 array( 'f', 'User names of 1 characters are not allowed.' ), 28 28 array( '12345', 'User names consisting only of numbers are not allowed.' ), 29 array( 'thisusernamecontainsenoughcharacterstobelongerthan60characters', 'User names longer than 60 characters are not allowed.' ), 29 30 ); 30 31 }
Note: See TracChangeset
for help on using the changeset viewer.