Skip to:
Content

BuddyPress.org

Ticket #2688: wp_error.diff

File wp_error.diff, 702 bytes (added by bountin, 14 years ago)
  • wp-content/plugins/buddypress/bp-core/bp-core-signup.php

    ### Eclipse Workspace Patch 1.0
    #P borisgloger
     
    391391                        'user_email' => $user_email
    392392                ) );
    393393
    394                 if ( !$user_id ) {
     394                if ( !$user_id OR $user_id instanceof WP_Error ) {
    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;
    397397                }