Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/28/2024 05:27:43 PM (5 months ago)
Author:
espellcaste
Message:

Improve deleted-user private messages in the web and REST API.

Private messages from a deleted user are properly anonymized in both the web and REST API.

Props imath, niftythree.

Closes https://github.com/buddypress/buddypress/pull/384
Fixes #9160

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/classes/class-bp-messages-thread.php

    r14036 r14061  
    11951195     *
    11961196     * @param array $recipients Array containing the message recipients (array of objects).
    1197      * @return string String of message recipent userlinks.
     1197     * @return string String of message recipient userlinks.
    11981198     */
    11991199    public static function get_recipient_links( $recipients ) {
     
    12161216        }
    12171217
    1218         return implode( ', ', (array) $recipient_links );
     1218        return implode( ', ', $recipient_links );
    12191219    }
    12201220
Note: See TracChangeset for help on using the changeset viewer.