Changeset 4830
- Timestamp:
- 07/24/2011 12:42:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-signup.php
r4824 r4830 314 314 $illegal_names = get_site_option( 'illegal_names' ); 315 315 316 if ( !validate_username( $user_name ) || in_array( $user_name, (array)$illegal_names ) || $user_name != $maybe[0])316 if ( !validate_username( $user_name ) || in_array( $user_name, (array)$illegal_names ) || ( !empty( $maybe[0] ) && $user_name != $maybe[0] ) ) 317 317 $errors->add( 'user_name', __( 'Only lowercase letters and numbers allowed', 'buddypress' ) ); 318 318
Note: See TracChangeset
for help on using the changeset viewer.