Skip to:
Content

BuddyPress.org

Changeset 3321


Ignore:
Timestamp:
10/27/2010 04:45:39 PM (14 years ago)
Author:
djpaul
Message:

Check for WP_Error on user account creation. Fixes #2688 (branch)

File:
1 edited

Legend:

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

    r3278 r3321  
    392392        ) );
    393393
    394         if ( !$user_id ) {
     394        if ( is_wp_error( $user_id ) || !$user_id ) {
    395395            $errors->add( 'registerfail', sprintf( __('<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'buddypress' ), get_option( 'admin_email' ) ) );
    396396            return $errors;
Note: See TracChangeset for help on using the changeset viewer.