Ticket #8298: 8298.01.patch
File 8298.01.patch, 2.4 KB (added by , 4 years ago) |
---|
-
src/bp-groups/screens/single/request-membership.php
38 38 if ( !check_admin_referer( 'groups_request_membership' ) ) 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 { 44 44 bp_core_add_message( __( 'Your membership request was sent to the group administrator successfully. You will be notified when the group administrator responds to your request.', 'buddypress' ) ); -
src/bp-templates/bp-legacy/buddypress-functions.php
1582 1582 case 'request_membership' : 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 { 1588 1588 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button disabled pending membership-requested" rel="membership-requested" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Request Sent', 'buddypress' ) . '</a>'; -
src/bp-templates/bp-nouveau/includes/groups/ajax.php
189 189 break; 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( 195 195 '<div class="bp-feedback error"><span class="bp-icon" aria-hidden="true"></span><p>%s</p></div>',