5 | | * ORIGINAL SCRIPT |
6 | | */ |
7 | | //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 ); |
8 | | |
9 | | /** |
10 | | * UPDATED SCRIPT (23-FEB-2017) |
11 | | * To avoid the Accept request URL issue |
12 | | */ |
13 | | 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 ); |
14 | | } |
| 5 | {{{#!php |
| 6 | /** |
| 7 | * ORIGINAL SCRIPT |
| 8 | */ |
| 9 | //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 ); |
| 10 | }}} |
| 11 | |
| 12 | {{{#!php |
| 13 | /** |
| 14 | * UPDATED SCRIPT (23-FEB-2017) |
| 15 | * To avoid the Accept request URL issue |
| 16 | */ |
| 17 | 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 ); |
| 18 | }}} |