Changeset 2333
- Timestamp:
- 01/18/2010 12:13:44 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
bp-friends.php (modified) (1 diff)
-
bp-xprofile.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends.php
r2332 r2333 684 684 } 685 685 686 function friends_clear_friend_notifications() { 687 global $bp; 688 689 if ( isset($_GET['new']) ) 690 bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'friends', 'friendship_accepted' ); 691 } 692 add_action( 'bp_activity_screen_my_activity', 'friends_clear_friend_notifications' ); 693 686 694 // List actions to clear object caches on 687 695 add_action( 'friends_friendship_accepted', 'friends_clear_friend_object_cache' ); -
trunk/bp-xprofile.php
r2298 r2333 286 286 global $bp; 287 287 288 // If this is a first visit to a new friends profile, delete the friend accepted notifications for the289 // logged in user, only if $_GET['new'] is set.290 if ( isset($_GET['new']) )291 bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'friends', 'friendship_accepted' );292 293 288 do_action( 'xprofile_screen_display_profile', $_GET['new'] ); 294 289 bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'members/single/home' ) );
Note: See TracChangeset
for help on using the changeset viewer.