Changeset 12984 for trunk/src/bp-messages/bp-messages-functions.php
- Timestamp:
- 07/02/2021 01:10:12 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-functions.php
r12592 r12984 325 325 * Wrapper for {@link BP_Messages_Thread::mark_as_read()}. 326 326 * 327 * @param int $thread_id ID of the thread. 327 * @since 9.0.0 Added the `user_id` parameter. 328 * 329 * @param int $thread_id The message thread ID. 330 * @param int $user_id Optional. The user the thread will be marked as read. 328 331 * 329 332 * @return false|int Number of threads marked as read or false on error. 330 333 */ 331 function messages_mark_thread_read( $thread_id ) {332 return BP_Messages_Thread::mark_as_read( $thread_id );334 function messages_mark_thread_read( $thread_id, $user_id = 0 ) { 335 return BP_Messages_Thread::mark_as_read( $thread_id, $user_id ); 333 336 } 334 337 … … 338 341 * Wrapper for {@link BP_Messages_Thread::mark_as_unread()}. 339 342 * 340 * @param int $thread_id ID of the thread. 343 * @since 9.0.0 Added the `user_id` parameter. 344 * 345 * @param int $thread_id The message thread ID. 346 * @param int $user_id Optional. The user the thread will be marked as unread. 341 347 * 342 348 * @return false|int Number of threads marked as unread or false on error. 343 349 */ 344 function messages_mark_thread_unread( $thread_id ) {345 return BP_Messages_Thread::mark_as_unread( $thread_id );350 function messages_mark_thread_unread( $thread_id, $user_id = 0 ) { 351 return BP_Messages_Thread::mark_as_unread( $thread_id, $user_id ); 346 352 } 347 353
Note: See TracChangeset
for help on using the changeset viewer.