Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/08/2013 05:20:46 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Introduce bp_core_mark_notifications_by_type() and bp_core_mark_notifications_by_item_id() and replace bp_core_delete_notifications_by_type() and bp_core_delete_notifications_by_item_id() usages.

Ensures notifications are toggled as acknowledged rather than deleted. See #5148.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-template.php

    r7439 r7530  
    186186    } else {
    187187        if ( bp_is_current_action( 'inbox' ) ) {
    188             bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->messages->id, 'new_message' );
     188            bp_core_mark_notifications_by_type( bp_loggedin_user_id(), $bp->messages->id, 'new_message' );
    189189        }
    190190
Note: See TracChangeset for help on using the changeset viewer.