Skip to content

Commit

Permalink
bp_ass_activity_notification_message filter should create user-specif…
Browse files Browse the repository at this point in the history
…ic message variable

It was wiping out the un-user-specific $message, which was causing user-
specific footer info to be appended over and over again during the group loop.

See fd6965a
  • Loading branch information
boonebgorges committed Jun 12, 2014
1 parent fd6965a commit d2c9ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bp-activity-subscription-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function ass_group_notification_forum_posts( $post_id ) {
// if we're good to send, send the email!
if ( $send_it ) {
// One last chance to filter the message content
$message = apply_filters( 'bp_ass_forum_notification_message', $message . $notice, array(
$user_message = apply_filters( 'bp_ass_forum_notification_message', $message . $notice, array(
'message' => $message,
'notice' => $notice,
'user_id' => $user_id,
Expand All @@ -317,7 +317,7 @@ function ass_group_notification_forum_posts( $post_id ) {

// Send the email
if ( $user->user_email ) {
wp_mail( $user->user_email, $subject, $message );
wp_mail( $user->user_email, $subject, $user_message );
}
}

Expand Down

0 comments on commit d2c9ec3

Please sign in to comment.