Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/23/2021 11:31:33 PM (3 years ago)
Author:
dcavins
Message:

BP_Invitation: Increment date_modified on key actions.

When an invitation is sent or accepted, the date_modified
should be updated. However, if a date_modified has been
specified in the invitation or request creation function
(as we do in our unit test functions), the date_modified
should be set to that, even if notices are sent (now) as
part of the creation process.

Ensure that BP_Invitation::get_query_clauses() handles specified date_modified data updates.

Fixes #8444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r12852 r12873  
    20452045    // If a new request was created, send the emails.
    20462046    if ( $request_id && is_int( $request_id ) ) {
    2047         $invites_class->send_request_notification_by_id( $request_id );
     2047        $invites_class->send_request_notification_by_id( $request_id, $r );
    20482048        $admins = groups_get_group_admins( $r['group_id'] );
    20492049
Note: See TracChangeset for help on using the changeset viewer.