Changeset 5443
- Timestamp:
- 12/05/2011 06:24:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-signup.php
r5417 r5443 308 308 $errors->add( 'user_name', __( 'Please enter a username', 'buddypress' ) ); 309 309 310 $maybe = array();311 preg_match( "/[a-z0-9]+/", $user_name, $maybe );312 313 310 // Make sure illegal names include BuddyPress slugs and values 314 311 bp_core_flush_illegal_names(); … … 316 313 $illegal_names = get_site_option( 'illegal_names' ); 317 314 318 if ( !validate_username( $user_name ) || in_array( $user_name, (array)$illegal_names ) || ( !empty( $maybe[0] ) && $user_name != $maybe[0] ))315 if ( !validate_username( $user_name ) || in_array( $user_name, (array)$illegal_names ) ) 319 316 $errors->add( 'user_name', __( 'Only lowercase letters and numbers allowed', 'buddypress' ) ); 320 317
Note: See TracChangeset
for help on using the changeset viewer.