Ticket #2784: 2784.diff
File 2784.diff, 1.3 KB (added by , 14 years ago) |
---|
-
bp-core-signup.php
219 219 220 220 /* If there was errors, add a message and redirect */ 221 221 if ( $user->errors ) { 222 bp_core_add_message( __( 'There was an error activating your account, please try again.', 'buddypress'), 'error' );222 bp_core_add_message( $user->get_error_message(), 'error' ); 223 223 bp_core_redirect( $bp->root_domain . '/' . BP_ACTIVATION_SLUG ); 224 224 } 225 225 … … 348 391 'user_email' => $user_email 349 392 ) ); 350 393 351 if ( is_wp_error( $user_id ) ||!$user_id ) {394 if ( !$user_id ) { 352 395 $errors->add( 'registerfail', sprintf( __('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'buddypress' ), get_option( 'admin_email' ) ) ); 353 396 return $errors; 354 397 } … … 408 451 $user = wpmu_activate_signup( $key ); 409 452 410 453 /* If there was errors, add a message and redirect */ 411 if ( $user->errors ) { 412 bp_core_add_message( __( 'There was an error activating your account, please try again.', 'buddypress' ), 'error' ); 413 bp_core_redirect( $bp->root_domain . '/' . BP_ACTIVATION_SLUG ); 414 } 454 if ( $user->errors ) 455 return $user; 415 456 416 457 $user_id = $user['user_id']; 417 458