diff --git src/bp-messages/bp-messages-functions.php src/bp-messages/bp-messages-functions.php
index 6699597b4..1f6bfc206 100644
|
|
function messages_notification_new_message( $raw_args = array() ) { |
581 | 581 | |
582 | 582 | $sender_name = bp_core_get_user_displayname( $sender_id ); |
583 | 583 | |
| 584 | if ( isset( $message ) ) { |
| 585 | $message = wpautop( $message ); |
| 586 | } else { |
| 587 | $message = ''; |
| 588 | } |
| 589 | |
584 | 590 | // Send an email to each recipient. |
585 | 591 | foreach ( $recipients as $recipient ) { |
586 | 592 | if ( $sender_id == $recipient->user_id || 'no' == bp_get_user_meta( $recipient->user_id, 'notification_messages_new_message', true ) ) { |