Changeset 7529 for trunk/bp-friends/bp-friends-screens.php
- Timestamp:
- 11/08/2013 05:09:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-screens.php
r6342 r7529 16 16 17 17 function friends_screen_my_friends() { 18 global $bp;19 18 20 19 // Delete any friendship acceptance notifications for the user when viewing a profile 21 bp_core_ delete_notifications_by_type( bp_loggedin_user_id(), $bp->friends->id, 'friendship_accepted' );20 bp_core_mark_all_notifications_by_type( bp_loggedin_user_id(), buddypress()->friends->id, 'friendship_accepted' ); 22 21 23 22 do_action( 'friends_screen_my_friends' ); … … 63 62 do_action( 'friends_screen_requests' ); 64 63 65 if ( isset( $_GET['new'] ) ) 66 bp_core_delete_notifications_by_type( bp_loggedin_user_id(), 'friends', 'friendship_request' ); 64 if ( isset( $_GET['new'] ) ) { 65 bp_core_mark_all_notifications_by_type( bp_loggedin_user_id(), buddypress()->friends->id, 'friendship_request' ); 66 } 67 67 68 68 bp_core_load_template( apply_filters( 'friends_template_requests', 'members/single/home' ) );
Note: See TracChangeset
for help on using the changeset viewer.