Ticket #5319: buddypress-functions.php.patch
File buddypress-functions.php.patch, 574 bytes (added by , 11 years ago) |
---|
-
buddypress-functions.php
979 979 // Cast fid as an integer 980 980 $friend_id = (int) $_POST['fid']; 981 981 982 // Prevent POST request from member to himself 983 if ( bp_loggedin_user_id() == $friend_id ) 984 exit(); 985 982 986 // Trying to cancel friendship 983 987 if ( 'is_friend' == BP_Friends_Friendship::check_is_friend( bp_loggedin_user_id(), $friend_id ) ) { 984 988 check_ajax_referer( 'friends_remove_friend' );