Skip to:
Content

Ticket #7448: 7448.01.patch

File 7448.01.patch, 1.3 KB (added by r-a-y, 16 months ago)
  • src/bp-friends/bp-friends-template.php

     
    563563                 * @param string $value         Accept-friendship URL.
    564564                 * @param int    $friendship_id ID of the friendship.
    565565                 */
    566                 return apply_filters( 'bp_get_friend_accept_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/accept/' . $friendship_id, 'friends_accept_friendship' ), $friendship_id );
     566                return apply_filters( 'bp_get_friend_accept_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/accept/' . $friendship_id . '/', 'friends_accept_friendship' ), $friendship_id );
    567567        }
    568568
    569569/**
     
    598598                 * @param string $value         Reject-friendship URL.
    599599                 * @param int    $friendship_id ID of the friendship.
    600600                 */
    601                 return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ), $friendship_id );
     601                return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/reject/' . $friendship_id . '/', 'friends_reject_friendship' ), $friendship_id );
    602602        }
    603603
    604604/**