Opened 15 years ago
Closed 15 years ago
#991 closed defect (bug) (fixed)
re 1844, small bp_add_friend_button error
Reported by: | junsuijin | Owned by: | junsuijin |
---|---|---|---|
Milestone: | 1.1 | Priority: | major |
Severity: | Version: | ||
Component: | Keywords: | has-patch, tested | |
Cc: |
Description
bp_add_friend_button needs to pass $potential_friend_id to bp_get_add_friend_button
Attachments (1)
Change History (3)
#1
@
15 years ago
it should also be apparent that this bit of the bp_get_add_friend_button function does not appear to do anything, given this bug exists...
[...] if ( is_user_logged_in() ) { if ( !$potential_friend_id && $friends_template->friendship->friend ) $potential_friend_id = $friends_template->friendship->friend->id; else if ( !$potential_friend_id && !$friends_template->friendship->friend ) $potential_friend_id = $bp->displayed_user->id; [...]
Note: See
TracTickets for help on using
tickets.
otherwise all buttons are 'add friend' with no loggedin user id