Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/19/2016 10:51:10 PM (7 years ago)
Author:
slaffik
Message:

Messages: improvements to thread mark as read/unread.

Added new actions, so developers can now do their jobs when thread was marked as read/unread. Made wrappers like messages_mark_thread_read() meaningful by actually providing a return value.

See #5193.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-functions.php

    r11309 r11310  
    326326 *
    327327 * @param int $thread_id ID of the thread.
     328 *
     329 * @return false|int Number of threads marked as read or false on error.
    328330 */
    329331function messages_mark_thread_read( $thread_id ) {
     
    337339 *
    338340 * @param int $thread_id ID of the thread.
     341 *
     342 * @return false|int Number of threads marked as unread or false on error.
    339343 */
    340344function messages_mark_thread_unread( $thread_id ) {
Note: See TracChangeset for help on using the changeset viewer.