Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2020 06:59:42 PM (16 months ago)
Author:
imath
Message:

Make sure Group membership requests includes the optional message

When implementing the BP Invitations feature in 6.0.0, we forgot to set the content argument of the array passed to groups_send_membership_request()` function with the optional message content.

Props scipi

See #8359 (trunk)

File:
1 edited

Legend:

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

    r12590 r12719  
    152152        'item_id'    => $group_id,
    153153    ) );
     154
    154155    if ( $requests ) {
    155156        $request_message = current( $requests )->content;
     157
     158        if ( $request_message ) {
     159            $request_message = "\n" . $request_message . "\n";
     160        }
    156161    }
    157162
Note: See TracChangeset for help on using the changeset viewer.