Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/12/2011 09:25:51 PM (15 years ago)
Author:
djpaul
Message:

Swap function_exists checks to bp_is_active. Fixes #2718

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-signup.php

    r4094 r4137  
    6161
    6262        // 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' ) ) {
    6464
    6565            // Make sure hidden field is passed and populated
     
    396396
    397397        // Set any profile data
    398         if ( function_exists( 'xprofile_set_field_data' ) ) {
     398        if ( bp_is_active( 'xprofile' ) ) {
    399399            if ( !empty( $usermeta['profile_field_ids'] ) ) {
    400400                $profile_field_ids = explode( ',', $usermeta['profile_field_ids'] );
     
    455455
    456456        // Set any profile data
    457         if ( function_exists( 'xprofile_set_field_data' ) ) {
     457        if ( bp_is_active( 'xprofile' ) ) {
    458458            if ( !empty( $user['meta']['profile_field_ids'] ) ) {
    459459                $profile_field_ids = explode( ',', $user['meta']['profile_field_ids'] );
     
    486486    }
    487487
    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' );
    491489
    492490    // Update the display_name
     
    534532
    535533    // Add the user's fullname to Xprofile
    536     if ( function_exists( 'xprofile_set_field_data' ) ) {
     534    if ( bp_is_active( 'xprofile' ) ) {
    537535        $firstname = get_user_meta( $user_id, 'first_name', true );
    538536        $lastname = ' ' . get_user_meta( $user_id, 'last_name', true );
Note: See TracChangeset for help on using the changeset viewer.