Skip to:
Content

BuddyPress.org

Changeset 2829


Ignore:
Timestamp:
03/10/2010 01:27:13 PM (14 years ago)
Author:
apeatling
Message:

Fixes #2161

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-signup.php

    r2818 r2829  
    207207    $errors = new WP_Error();
    208208
    209     $user_id = wp_create_user( $user_login, $user_password, $user_email );
     209    $user_id = wp_insert_user( array(
     210        'user_login' => $user_login,
     211        'user_pass' => $user_password,
     212        'display_name' => sanitize_title( $user_login ),
     213        'user_email' => $user_email
     214    ) );
     215
    210216    if ( !$user_id ) {
    211217        $errors->add('registerfail', sprintf(__('<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_option('admin_email')));
    212218        return $errors;
    213219    }
     220
     221    /* Update the user_url */
     222    wp_update_user( array( 'ID' => $user_id, 'user_url' => bp_core_get_user_domain( $user_id, sanitize_title( $user_login ), $user_login ) ) );
    214223
    215224    /* Set any profile data */
Note: See TracChangeset for help on using the changeset viewer.