Bug @bp_core/bp-core-signup.php
- 
		At line 394 there is only a check for true/false, but wp_insert_user() returns WP_error and not a boolean value. `Index: wp-content/plugins/buddypress/bp-core/bp-core-signup.php 
 ===================================================================
 — wp-content/plugins/buddypress/bp-core/bp-core-signup.php (revision 158)
 +++ wp-content/plugins/buddypress/bp-core/bp-core-signup.php (working copy)
 @@ -391,7 +391,7 @@
 ‘user_email’ => $user_email
 ) );– if ( !$user_id ) { 
 + if ( !$user_id OR $user_id instanceof WP_Error ) {
 $errors->add( ‘registerfail’, sprintf( __(‘ERROR: Couldn’t register you… please contact the webmaster !’, ‘buddypress’ ), get_option( ‘admin_email’ ) ) );
 return $errors;
 }
 `
- The topic ‘Bug @bp_core/bp-core-signup.php’ is closed to new replies.