Changeset 12930 for trunk/src/bp-members/bp-members-functions.php
- Timestamp:
- 04/29/2021 08:31:02 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-functions.php
r12918 r12930 3402 3402 * @return bool True on success, false on failure. 3403 3403 */ 3404 function bp_members_invitations_invite_user( $args ) { 3405 $r = bp_parse_args( $args, array( 3406 'invitee_email' => '', 3407 'network_id' => get_current_network_id(), 3408 'inviter_id' => bp_loggedin_user_id(), 3409 'date_modified' => bp_core_current_time(), 3410 'content' => '', 3411 'send_invite' => 0 3412 ), 'community_invite_user' ); 3404 function bp_members_invitations_invite_user( $args = array() ) { 3405 $r = bp_parse_args( 3406 $args, 3407 array( 3408 'invitee_email' => '', 3409 'network_id' => get_current_network_id(), 3410 'inviter_id' => bp_loggedin_user_id(), 3411 'date_modified' => bp_core_current_time(), 3412 'content' => '', 3413 'send_invite' => 0 3414 ), 3415 'community_invite_user' 3416 ); 3413 3417 3414 3418 $inv_args = array( … … 3537 3541 * @return bool True if all were deleted. 3538 3542 */ 3539 function bp_members_invitations_delete_invites( $args ) { 3540 $r = bp_parse_args( $args, array( 3541 'id' => false, 3542 'invitee_email' => '', 3543 'network_id' => get_current_network_id(), 3544 'inviter_id' => null, 3545 'accepted' => null, 3546 'invite_sent' => null 3547 ), 'members_invitations_delete_invites' ); 3543 function bp_members_invitations_delete_invites( $args = array() ) { 3544 $r = bp_parse_args( 3545 $args, 3546 array( 3547 'id' => false, 3548 'invitee_email' => '', 3549 'network_id' => get_current_network_id(), 3550 'inviter_id' => null, 3551 'accepted' => null, 3552 'invite_sent' => null 3553 ), 3554 'members_invitations_delete_invites' 3555 ); 3548 3556 3549 3557 $inv_args = array( … … 3557 3565 3558 3566 // Find the invitation(s). 3559 $invites 3560 $total_count 3567 $invites = bp_members_invitations_get_invites( $inv_args ); 3568 $total_count = count( $invites ); 3561 3569 3562 3570 // Loop through, deleting each invitation. … … 3625 3633 // Check to make sure the passed hash matches a calculated hash. 3626 3634 $maybe_invite = $invites_class->get_by_id( absint( $_GET['inv'] ) ); 3627 $hash = bp_members_invitations_get_hash( $maybe_invite ); 3635 $hash = bp_members_invitations_get_hash( $maybe_invite ); 3636 3628 3637 if ( $_GET['ih'] === $hash ) { 3629 3638 $invite = $maybe_invite;
Note: See TracChangeset
for help on using the changeset viewer.