Changeset 4137 for trunk/bp-members/bp-members-signup.php
- Timestamp:
- 03/12/2011 09:25:51 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-members/bp-members-signup.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-signup.php
r4094 r4137 61 61 62 62 // Now we've checked account details, we can check profile information 63 if ( function_exists( 'xprofile_check_is_required_field' ) ) {63 if ( bp_is_active( 'xprofile' ) ) { 64 64 65 65 // Make sure hidden field is passed and populated … … 396 396 397 397 // Set any profile data 398 if ( function_exists( 'xprofile_set_field_data' ) ) {398 if ( bp_is_active( 'xprofile' ) ) { 399 399 if ( !empty( $usermeta['profile_field_ids'] ) ) { 400 400 $profile_field_ids = explode( ',', $usermeta['profile_field_ids'] ); … … 455 455 456 456 // Set any profile data 457 if ( function_exists( 'xprofile_set_field_data' ) ) {457 if ( bp_is_active( 'xprofile' ) ) { 458 458 if ( !empty( $user['meta']['profile_field_ids'] ) ) { 459 459 $profile_field_ids = explode( ',', $user['meta']['profile_field_ids'] ); … … 486 486 } 487 487 488 // Support for WP < 3.1 489 if ( ! function_exists( 'wp_update_user' ) ) 490 require_once( ABSPATH . WPINC . '/registration.php' ); 488 require_once( ABSPATH . WPINC . '/registration.php' ); 491 489 492 490 // Update the display_name … … 534 532 535 533 // Add the user's fullname to Xprofile 536 if ( function_exists( 'xprofile_set_field_data' ) ) {534 if ( bp_is_active( 'xprofile' ) ) { 537 535 $firstname = get_user_meta( $user_id, 'first_name', true ); 538 536 $lastname = ' ' . get_user_meta( $user_id, 'last_name', true );
Note: See TracChangeset
for help on using the changeset viewer.