Ticket #5836: 5836.patch
File 5836.patch, 561 bytes (added by , 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' ); 767 767 function xprofile_sync_bp_profile( &$errors, $update, &$user ) { 768 768 769 769 // 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 ) ) { 771 771 return; 772 772 } 773 773