Skip to:
Content

BuddyPress.org

Changeset 2909


Ignore:
Timestamp:
04/09/2010 05:14:50 PM (10 years ago)
Author:
mrmaz
Message:

fixes #2226

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r2866 r2909  
    263263    update_site_option( 'illegal_names', $illegal_names );
    264264
    265     if ( !validate_username( $user_name ) || in_array( $user_name, (array)$illegal_names ) || $user_name != $maybe[0] )
     265    if ( in_array( $user_name, (array)$illegal_names ) )
     266        $errors->add( 'user_name', __( 'Sorry, that username is not allowed', 'buddypress' ) );
     267
     268    if ( !validate_username( $user_name ) || $user_name != $maybe[0] )
    266269        $errors->add( 'user_name', __( 'Only lowercase letters and numbers allowed', 'buddypress' ) );
    267270
Note: See TracChangeset for help on using the changeset viewer.