Skip to:
Content

BuddyPress.org

Changeset 3320


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

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

File:
1 edited

Legend:

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

    r3300 r3320  
    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.