Changeset 7521 for trunk/bp-friends/bp-friends-classes.php
- Timestamp:
- 11/07/2013 05:15:51 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends/bp-friends-classes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-classes.php
r7507 r7521 364 364 $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->friends->table_name} WHERE friend_user_id = %d OR initiator_user_id = %d", $user_id, $user_id ) ); 365 365 366 // Delete friend request notifications for members who have a notification from this user. 367 $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->core->table_name_notifications} WHERE component_name = 'friends' AND ( component_action = 'friendship_request' OR component_action = 'friendship_accepted' ) AND item_id = %d", $user_id ) ); 366 // Delete friend request notifications for members who have a 367 // notification from this user. 368 if ( bp_is_active( 'notifications' ) ) { 369 $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->notifications->table_name} WHERE component_name = 'friends' AND ( component_action = 'friendship_request' OR component_action = 'friendship_accepted' ) AND item_id = %d", $user_id ) ); 370 } 368 371 369 372 // Loop through friend_ids and update their counts
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)