Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/08/2013 07:53:56 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Use the correct function and update methods for marking user notifications as read. See #5148.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-screens.php

    r7529 r7537  
    1818
    1919    // Delete any friendship acceptance notifications for the user when viewing a profile
    20     bp_core_mark_all_notifications_by_type( bp_loggedin_user_id(), buddypress()->friends->id, 'friendship_accepted' );
     20    bp_core_mark_notifications_by_type( bp_loggedin_user_id(), buddypress()->friends->id, 'friendship_accepted' );
    2121
    2222    do_action( 'friends_screen_my_friends' );
     
    6363
    6464    if ( isset( $_GET['new'] ) ) {
    65         bp_core_mark_all_notifications_by_type( bp_loggedin_user_id(), buddypress()->friends->id, 'friendship_request' );
     65        bp_core_mark_notifications_by_type( bp_loggedin_user_id(), buddypress()->friends->id, 'friendship_request' );
    6666    }
    6767
Note: See TracChangeset for help on using the changeset viewer.