Opened 16 years ago
Closed 15 years ago
#784 closed enhancement (fixed)
do_action friends_friendship_rejected - argument is useless
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.1 | Priority: | minor |
Severity: | Version: | ||
Component: | Keywords: | ||
Cc: | djpaul@… |
Description
bp-friends.php - friends_reject_friendship()
The argument passed in the do_action( 'friends_friendship_rejected', ...) is useless. The table entry for $friendship_id is deleted in the BP_Friends_Friendship::reject call, so you can't do anything with it.
Suggest moving the do_action out of the IF, or passing the ID of the user who *sent* the friendship request.
Change History (7)
#4
@
15 years ago
- Resolution set to invalid
- Status changed from new to closed
Not totally true, since plugins may use that friendship ID stored in some other table or in usermeta. When the friendship is removed this no longer references anything as you say, but it may still be used to delete other entries based on friendship_id by plugins.
Milestone Friends 1.1 deleted