Skip to:
Content

BuddyPress.org

Ticket #8080: 8080.patch

File 8080.patch, 556 bytes (added by imath, 6 months 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 387943d54..61ded106f 100644
    function bp_messages_personal_data_exporter( $email_address, $page ) { 
    684684
    685685                foreach ( $thread->messages as $message_index => $message ) {
    686686                        // Only include messages written by the user.
    687                         if ( $recipient->user_id !== $message->sender_id ) {
     687                        if ( $user->ID !== $message->sender_id ) {
    688688                                continue;
    689689                        }
    690690