Skip to:
Content

BuddyPress.org

Changeset 12139


Ignore:
Timestamp:
05/28/2018 04:56:23 PM (7 years ago)
Author:
imath
Message:

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

props dipesh.kakadiya

See #7863 (Trunk)

File:
1 edited

Legend:

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

    r11844 r12139  
    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.