diff --git src/bp-groups/bp-groups-notifications.php src/bp-groups/bp-groups-notifications.php
index c4b1a48..0efa9cf 100644
|
|
|
function groups_notification_new_membership_request( $requesting_user_id = 0, $a |
| 111 | 111 | // Link to the group administrator email settings: %s in "disable notifications" part of the email |
| 112 | 112 | $settings_link = bp_core_get_user_domain( $admin_id ) . $settings_slug . '/notifications/'; |
| 113 | 113 | |
| | 114 | // Fetch the message, if there's one to fetch |
| | 115 | $membership = new BP_Groups_Member( false, false, $membership_id ); |
| | 116 | |
| 114 | 117 | // Set up and send the message |
| 115 | 118 | $to = $ud->user_email; |
| 116 | 119 | $subject = bp_get_email_subject( array( 'text' => sprintf( __( 'Membership request for group: %s', 'buddypress' ), $group->name ) ) ); |
| 117 | 120 | |
| 118 | | $message = sprintf( __( |
| | 121 | if ( ! empty( $membership->comments ) ) { |
| | 122 | $message = sprintf( __( |
| | 123 | '%1$s wants to join the group "%2$s". |
| | 124 | |
| | 125 | Message from %1$s: "%3$s" |
| | 126 | |
| | 127 | Because you are the administrator of this group, you must either accept or reject the membership request. |
| | 128 | |
| | 129 | To view all pending membership requests for this group, please visit: |
| | 130 | %4$s |
| | 131 | |
| | 132 | To view %5$s\'s profile: %6$s |
| | 133 | |
| | 134 | --------------------- |
| | 135 | ', 'buddypress' ), $requesting_user_name, $group->name, $membership->comments, $group_requests, $requesting_user_name, $profile_link ); |
| | 136 | |
| | 137 | } else { |
| | 138 | |
| | 139 | $message = sprintf( __( |
| 119 | 140 | '%1$s wants to join the group "%2$s". |
| 120 | 141 | |
| 121 | 142 | Because you are the administrator of this group, you must either accept or reject the membership request. |
| … |
… |
To view %4$s\'s profile: %5$s |
| 127 | 148 | |
| 128 | 149 | --------------------- |
| 129 | 150 | ', 'buddypress' ), $requesting_user_name, $group->name, $group_requests, $requesting_user_name, $profile_link ); |
| | 151 | } |
| 130 | 152 | |
| 131 | 153 | // Only show the disable notifications line if the settings component is enabled |
| 132 | 154 | if ( bp_is_active( 'settings' ) ) { |