Skip to:
Content

BuddyPress.org

Ticket #7668: 7668.diff

File 7668.diff, 595 bytes (added by espellcaste, 4 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 39a3c5507..6699597b4 100644
    function messages_delete_thread( $thread_ids, $user_id = 0 ) { 
    315315 * @return int|null Message ID if the user has access, otherwise null.
    316316 */
    317317function messages_check_thread_access( $thread_id, $user_id = 0 ) {
    318         if ( empty( $user_id ) ) {
    319                 $user_id = bp_loggedin_user_id();
    320         }
    321 
    322318        return BP_Messages_Thread::check_access( $thread_id, $user_id );
    323319}
    324320