Changeset 5840
- Timestamp:
- 02/25/2012 06:21:27 PM (13 years ago)
- Location:
- trunk/bp-members
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-functions.php
r5837 r5840 949 949 $user_email = sanitize_email( $user_email ); 950 950 951 // Apply any user_login filters added by BP or other plugins before validating 952 $user_name = apply_filters( 'pre_user_login', $user_name ); 953 951 954 if ( empty( $user_name ) ) 952 955 $errors->add( 'user_name', __( 'Please enter a username', 'buddypress' ) ); … … 1032 1035 ) ); 1033 1036 1034 if ( empty( $user_id ) ) {1037 if ( is_wp_error( $user_id ) || empty( $user_id ) ) { 1035 1038 $errors->add( 'registerfail', sprintf( __('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'buddypress' ), bp_get_option( 'admin_email' ) ) ); 1036 1039 return $errors; -
trunk/bp-members/bp-members-screens.php
r5837 r5840 189 189 // Finally, sign up the user and/or blog 190 190 if ( isset( $_POST['signup_with_blog'] ) && is_multisite() ) 191 bp_core_signup_blog( $blog_details['domain'], $blog_details['path'], $blog_details['blog_title'], $_POST['signup_username'], $_POST['signup_email'], $usermeta );191 $wp_user_id = bp_core_signup_blog( $blog_details['domain'], $blog_details['path'], $blog_details['blog_title'], $_POST['signup_username'], $_POST['signup_email'], $usermeta ); 192 192 else 193 bp_core_signup_user( $_POST['signup_username'], $_POST['signup_password'], $_POST['signup_email'], $usermeta ); 194 195 $bp->signup->step = 'completed-confirmation'; 193 $wp_user_id = bp_core_signup_user( $_POST['signup_username'], $_POST['signup_password'], $_POST['signup_email'], $usermeta ); 194 195 if ( is_wp_error( $wp_user_id ) ) { 196 $bp->signup->step = 'request-details'; 197 bp_core_add_message( $wp_user_id->get_error_message(), 'error' ); 198 } else { 199 $bp->signup->step = 'completed-confirmation'; 200 } 196 201 } 197 202
Note: See TracChangeset
for help on using the changeset viewer.