Skip to:
Content

BuddyPress.org

Changeset 2921


Ignore:
Timestamp:
04/13/2010 08:54:50 PM (12 years ago)
Author:
apeatling
Message:

Fixes bug where new friendship notifications would not clear.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-friends.php

    r2817 r2921  
    634634    global $bp;
    635635
    636     if ( isset($_GET['new']) )
    637         bp_core_delete_notifications_for_user_by_type( $bp->displayed_user->id, $bp->friends->id, 'friendship_accepted' );
     636    if ( isset( $_GET['new'] ) )
     637        bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->friends->id, 'friendship_accepted' );
    638638}
    639639add_action( 'bp_activity_screen_my_activity', 'friends_clear_friend_notifications' );
Note: See TracChangeset for help on using the changeset viewer.