Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/07/2014 09:30:04 PM (11 years ago)
Author:
imath
Message:

Make sure xprofile_sync_bp_profile() happens when a user is edited

Bring back checks on the $update var and WordPress error that were removed in r8810 so that the xProfile sync only happens when a user is edited. Add a unit test.

Props boonebgorges

Fixes #5836

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r8928 r8987  
    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    }
Note: See TracChangeset for help on using the changeset viewer.