Changeset 3666 for trunk/bp-core/bp-core-signup.php
- Timestamp:
- 01/06/2011 03:17:09 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-signup.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-signup.php
r3661 r3666 35 35 /* Check the nonce */ 36 36 check_admin_referer( 'bp_new_signup' ); 37 38 bp_core_maybe_include_user_registration_file();39 37 40 38 /* Check the base account details for problems */ … … 217 215 /* Check if an activation key has been passed */ 218 216 if ( isset( $_GET['key'] ) ) { 219 220 bp_core_maybe_include_user_registration_file();221 217 222 218 /* Activate the signup */ … … 353 349 global $wpdb; 354 350 351 if ( ! function_exists( 'validate_username' ) ) 352 require_once( ABSPATH . WPINC . '/registration.php' ); 353 355 354 $errors = new WP_Error(); 356 355 $user_email = sanitize_email( $user_email ); … … 430 429 } else { 431 430 $errors = new WP_Error(); 431 432 if ( ! function_exists( 'wp_insert_user' ) ) 433 require_once( ABSPATH . WPINC . '/registration.php' ); 432 434 433 435 $user_id = wp_insert_user( array( … … 537 539 } 538 540 539 /* Update the user_url and display_name */ 541 // Update the user_url and display_name 542 // Support for WP < 3.1 543 if ( ! function_exists( 'wp_update_user' ) ) 544 require_once( ABSPATH . WPINC . '/registration.php' ); 545 540 546 wp_update_user( array( 'ID' => $user_id, 'user_url' => bp_core_get_user_domain( $user_id ), 'display_name' => bp_core_get_user_displayname( $user_id ) ) ); 541 547
Note: See TracChangeset
for help on using the changeset viewer.