Skip to content

Commit

Permalink
Fix starring of a friend
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Nov 21, 2024
1 parent d01052c commit 2484aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ public function ajax_star_friend_user() {
exit;
}

$friend_id = intval( $_POST['friend_id'] );
$friend_id = sanitize_text_field( wp_unslash( $_POST['friend_id'] ) );
check_ajax_referer( "star-$friend_id" );

$friend_user = User::get_by_username( $friend_id );
Expand Down

0 comments on commit 2484aa7

Please sign in to comment.