#7581 closed enhancement (fixed)
duplicated paramater
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.0 | Priority: | low |
| Severity: | trivial | Version: | 2.9.0 |
| Component: | Groups | Keywords: | |
| Cc: |
Description
The requesting user id is being passed twice to the 'groups_membership_requested' action-hook in bp-groups-functions.php @ line 1824:
<?php do_action( 'groups_membership_requested', $requesting_user_id, $admins, $group_id, $requesting_user->id );
FYI.
Change History (3)
#2
@
8 years ago
- Owner set to djpaul
- Resolution set to fixed
- Status changed from new to closed
In 11671:
#3
in reply to:
↑ 1
@
8 years ago
Replying to DJPaul:
Hi @idofri
Thanks for reaching out.
I took a look and despite the inline documentation, that last parameter (
$requesting_user->id) is aBP_Groups_Memberobject, whoseidproperty is the unique ID of the group membership in the database (its primary key). I'll go update the docs now.
Note: See
TracTickets for help on using
tickets.

Hi @idofri
Thanks for reaching out.
I took a look and despite the inline documentation, that last parameter (
$requesting_user->id) is aBP_Groups_Memberobject, whoseidproperty is the unique ID of the group membership in the database (its primary key). I'll go update the docs now.