Skip to:
Content

BuddyPress.org

Changeset 5389


Ignore:
Timestamp:
11/27/2011 04:22:17 PM (13 years ago)
Author:
boonebgorges
Message:

Ensures that friends_update_friend_totals() is called manually when friends_add_friend() is used with force_accept = true. Fixes #3676

File:
1 edited

Legend:

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

    r5302 r5389  
    4040            do_action( 'friends_friendship_requested', $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    4141        } else {
     42            // Update friend totals
     43            friends_update_friend_totals( $friendship->initiator_user_id, $friendship->friend_user_id, 'add' );
     44
    4245            do_action( 'friends_friendship_accepted', $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    4346        }
Note: See TracChangeset for help on using the changeset viewer.