Skip to:
Content

BuddyPress.org

Ticket #2567: jeffsayre_2567_button.patch

File jeffsayre_2567_button.patch, 539 bytes (added by jeffsayre, 16 years ago)

In bp-friends-templatetags.php, add additional passed variables to the apply_filters function in bp_add_friend_button()

  • buddypress/bp-friends/bp-friends-templatetags.php

     
    144144                }
    145145                $button .= '</div>';
    146146
    147                 return apply_filters( 'bp_get_add_friend_button', $button );
     147                return apply_filters( 'bp_get_add_friend_button', $button, $potential_friend_id, $friend_status );
    148148        }
    149149
    150150function bp_get_friend_ids( $user_id = false ) {