Skip to:
Content

BuddyPress.org

Ticket #7863: 7863.2.patch

File 7863.2.patch, 694 bytes (added by imath, 7 years ago)
  • src/bp-messages/bp-messages-functions.php

    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() ) { 
    581581
    582582        $sender_name = bp_core_get_user_displayname( $sender_id );
    583583
     584        if ( isset( $message ) ) {
     585                $message = wpautop( $message );
     586        } else {
     587                $message = '';
     588        }
     589
    584590        // Send an email to each recipient.
    585591        foreach ( $recipients as $recipient ) {
    586592                if ( $sender_id == $recipient->user_id || 'no' == bp_get_user_meta( $recipient->user_id, 'notification_messages_new_message', true ) ) {