Ticket #810: 810-jjj.patch
File 810-jjj.patch, 668 bytes (added by , 16 years ago) |
---|
-
bp-activity.php
292 292 293 293 function bp_activity_remove_data( $user_id ) { 294 294 // Clear the user's activity from the sitewide stream and clear their activity tables 295 BP_Activity_Activity::delete_ activity_for_user( $user_id );295 BP_Activity_Activity::delete_for_user( $user_id ); 296 296 297 // Remove the deleted users activity tables298 BP_Activity_Activity::kill_tables_for_user( $user_id );299 300 297 do_action( 'bp_activity_remove_data', $user_id ); 301 298 } 302 299 add_action( 'wpmu_delete_user', 'bp_activity_remove_data' );