Skip to:
Content

BuddyPress.org

Ticket #9280: 9280.patch

File 9280.patch, 1.5 KB (added by khushipatel15, 13 months ago)

This patch fixes a typo in the filter hook name used when generating the "friendship accepted" activity action in the BuddyPress Friends component.

  • src/bp-friends/bp-friends-activity.php

    diff --git a/src/bp-friends/bp-friends-activity.php b/src/bp-friends/bp-friends-activity.php
    index 4297c7680..35523a1b1 100644
    a b function bp_friends_format_activity_action_friendship_accepted( $action, $activi 
    153153        // avoid having to build this object if it's not necessary.
    154154        if ( has_filter( 'friends_activity_friendship_accepted_action' ) ) {
    155155                $friendship = new BP_Friends_Friendship( $activity->item_id );
    156                 $action     = apply_filters( 'friends_activity_friendsip_accepted_action', $action, $friendship );
     156                $action     = apply_filters( 'friends_activity_friendship_accepted_action', $action, $friendship );
    157157        }
    158158
    159159        /**