Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/10/2018 05:05:15 PM (6 years ago)
Author:
r-a-y
Message:

Friends: Fix fatal error when the Activity component is disabled and when attempting to remove a friend.

During some refactoring to only load the Friends activity module
conditionally (r11932), a spot was missed during the remove friends
routine, causing a fatal error if the Activity component is disabled.

Props thejimmy.
Anti-props r-a-y.

See #7920 (trunk)

File:
1 edited

Legend:

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

    r12160 r12186  
    115115     */
    116116    do_action( 'friends_before_friendship_delete', $friendship_id, $initiator_userid, $friend_userid );
    117 
    118     // Remove the activity stream items about the friendship id.
    119     friends_delete_activity( array( 'item_id' => $friendship_id, 'type' => 'friendship_created', 'user_id' => 0 ) );
    120117
    121118    /**
Note: See TracChangeset for help on using the changeset viewer.