Changeset 3434
- Timestamp:
- 11/17/2010 03:23:04 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r3403 r3434 1160 1160 add_action( 'wpmu_delete_user', 'bp_activity_remove_data' ); 1161 1161 add_action( 'delete_user', 'bp_activity_remove_data' ); 1162 add_action( ' make_spam_user', 'bp_activity_remove_data' );1162 add_action( 'bp_make_spam_user', 'bp_activity_remove_data' ); 1163 1163 1164 1164 /** -
trunk/bp-blogs.php
r3421 r3434 717 717 add_action( 'wpmu_delete_user', 'bp_blogs_remove_data' ); 718 718 add_action( 'delete_user', 'bp_blogs_remove_data' ); 719 add_action( ' make_spam_user', 'bp_blogs_remove_data' );719 add_action( 'bp_make_spam_user', 'bp_blogs_remove_data' ); 720 720 721 721 -
trunk/bp-core.php
r3393 r3434 458 458 459 459 $wpdb->update( $wpdb->users, array( 'user_status' => $is_spam ), array( 'ID' => $bp->displayed_user->id ) ); 460 460 461 461 if ( $is_spam ) 462 462 bp_core_add_message( __( 'User marked as spammer. Spam users are visible only to site admins.', 'buddypress' ) ); … … 467 467 if ( $is_spam && function_exists( 'bp_activity_hide_user_activity' ) ) 468 468 bp_activity_hide_user_activity( $bp->displayed_user->id ); 469 470 // We need a special hook for is_spam so that components can delete data at spam time 471 if ( $is_spam ) 472 do_action( 'bp_make_spam_user', $bp->displayed_user->id ); 469 473 470 474 do_action( 'bp_core_action_set_spammer_status', $bp->displayed_user->id, $is_spam ); … … 1912 1916 add_action( 'wpmu_delete_user', 'bp_core_remove_data' ); 1913 1917 add_action( 'delete_user', 'bp_core_remove_data' ); 1914 add_action( ' make_spam_user', 'bp_core_remove_data' );1918 add_action( 'bp_make_spam_user', 'bp_core_remove_data' ); 1915 1919 1916 1920 /** -
trunk/bp-friends.php
r3369 r3434 581 581 add_action( 'wpmu_delete_user', 'friends_remove_data' ); 582 582 add_action( 'delete_user', 'friends_remove_data' ); 583 add_action( ' make_spam_user', 'friends_remove_data' );583 add_action( 'bp_make_spam_user', 'friends_remove_data' ); 584 584 585 585 -
trunk/bp-xprofile.php
r3403 r3434 903 903 add_action( 'wpmu_delete_user', 'xprofile_remove_data' ); 904 904 add_action( 'delete_user', 'xprofile_remove_data' ); 905 add_action( ' make_spam_user', 'xprofile_remove_data' );905 add_action( 'bp_make_spam_user', 'xprofile_remove_data' ); 906 906 907 907 /*** XProfile Meta ****************************************************/
Note: See TracChangeset
for help on using the changeset viewer.