Skip to:
Content

BuddyPress.org

Ticket #5836: 5836.patch

File 5836.patch, 561 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..cf75683 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() || empty( $user->ID ) || empty( $user->display_name ) ) {
    771771                return;
    772772        }
    773773