Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 17 years ago

#784 closed enhancement (fixed)

do_action friends_friendship_rejected - argument is useless

Reported by: DJPaul Owned by:
Priority: minor Milestone: 1.1
Component: Version:
Severity: 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)

#1 @DJPaul
17 years ago

  • Cc djpaul@… added

#2 @(none)
17 years ago

  • Milestone Friends 1.1

Milestone Friends 1.1 deleted

#3 @apeatling
17 years ago

  • Milestone1.1

#4 @apeatling
17 years ago

  • Resolutioninvalid
  • Status newclosed

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.

#5 @DJPaul
17 years ago

  • Type defectenhancement

Ok yes, but it doesn't let me perform an action based on who the user *was*.

#6 @DJPaul
17 years ago

  • Resolution invalid
  • Status closedreopened

#7 @apeatling
17 years ago

  • Resolutionfixed
  • Status reopenedclosed

(In [1793]) Fixes #784 props djpaul

Note: See TracTickets for help on using tickets.