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 ) { |
315 | 315 | * @return int|null Message ID if the user has access, otherwise null. |
316 | 316 | */ |
317 | 317 | function messages_check_thread_access( $thread_id, $user_id = 0 ) { |
318 | | if ( empty( $user_id ) ) { |
319 | | $user_id = bp_loggedin_user_id(); |
320 | | } |
321 | | |
322 | 318 | return BP_Messages_Thread::check_access( $thread_id, $user_id ); |
323 | 319 | } |
324 | 320 | |