Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2020 07:01:51 PM (6 years 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

Fixes #8359 (6.0 branch)

File:
1 edited

Legend:

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

    r12590 r12720  
    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.