Skip to:
Content

BuddyPress.org

Changeset 12140


Ignore:
Timestamp:
05/28/2018 04:58:24 PM (8 years ago)
Author:
imath
Message:

Messages: preserve user message line breaks in e-mail notifications.

props dipesh.kakadiya

Fixes #7863 (Branch 3.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/src/bp-messages/bp-messages-functions.php

    r11844 r12140  
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.