Changeset 12671
- Timestamp:
- 06/29/2020 08:18:53 PM (4 years ago)
- Location:
- branches/6.0/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/bp-groups/screens/single/request-membership.php
r11923 r12671 39 39 return false; 40 40 41 if ( !groups_send_membership_request( bp_loggedin_user_id(), $bp->groups->current_group->id) ) {41 if ( !groups_send_membership_request( [ 'user_id' => bp_loggedin_user_id(), 'group_id' => $bp->groups->current_group->id ] ) ) { 42 42 bp_core_add_message( __( 'There was an error sending your group membership request. Please try again.', 'buddypress' ), 'error' ); 43 43 } else { -
branches/6.0/src/bp-templates/bp-legacy/buddypress-functions.php
r12595 r12671 1583 1583 check_ajax_referer( 'groups_request_membership' ); 1584 1584 1585 if ( ! groups_send_membership_request( bp_loggedin_user_id(), $group->id) ) {1585 if ( ! groups_send_membership_request( [ 'user_id' => bp_loggedin_user_id(), 'group_id' => $group->id ] ) ) { 1586 1586 _e( 'Error requesting membership', 'buddypress' ); 1587 1587 } else { -
branches/6.0/src/bp-templates/bp-nouveau/includes/groups/ajax.php
r12501 r12671 190 190 191 191 case 'groups_request_membership' : 192 if ( ! groups_send_membership_request( bp_loggedin_user_id(), $group->id) ) {192 if ( ! groups_send_membership_request( [ 'user_id' => bp_loggedin_user_id(), 'group_id' => $group->id ] ) ) { 193 193 $response = array( 194 194 'feedback' => sprintf(
Note: See TracChangeset
for help on using the changeset viewer.