Changeset 3232 for trunk/bp-friends.php
- Timestamp:
- 09/06/2010 04:24:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends.php
r2946 r3232 566 566 do_action( 'friends_remove_data', $user_id ); 567 567 } 568 add_action( 'wpmu_delete_user', 'friends_remove_data' );569 add_action( 'delete_user', 'friends_remove_data' );570 add_action( 'make_spam_user', 'friends_remove_data' );568 add_action( 'wpmu_delete_user', 'friends_remove_data', 1 ); 569 add_action( 'delete_user', 'friends_remove_data', 1 ); 570 add_action( 'make_spam_user', 'friends_remove_data', 1 ); 571 571 572 572 … … 595 595 global $bp; 596 596 597 if ( isset( $_GET['new']) )598 bp_core_delete_notifications_for_user_by_type( $bp-> loggedin_user->id, $bp->friends->id, 'friendship_accepted' );597 if ( isset($_GET['new']) ) 598 bp_core_delete_notifications_for_user_by_type( $bp->displayed_user->id, $bp->friends->id, 'friendship_accepted' ); 599 599 } 600 600 add_action( 'bp_activity_screen_my_activity', 'friends_clear_friend_notifications' );
Note: See TracChangeset
for help on using the changeset viewer.