Skip to:
Content

BuddyPress.org

Ticket #5836: 5836.02.patch

File 5836.02.patch, 550 bytes (added by imath, 10 years ago)
  • src/bp-xprofile/bp-xprofile-functions.php

    diff --git src/bp-xprofile/bp-xprofile-functions.php src/bp-xprofile/bp-xprofile-functions.php
    index beffd5b..f6f2dee 100644
    add_action( 'bp_core_activated_user', 'xprofile_sync_wp_profile' ); 
    767767function xprofile_sync_bp_profile( &$errors, $update, &$user ) {
    768768
    769769        // Bail if profile syncing is disabled
    770         if ( bp_disable_profile_sync() ) {
     770        if ( bp_disable_profile_sync() || ! $update || $errors->get_error_codes() ) {
    771771                return;
    772772        }
    773773