- Timestamp:
- 03/05/2018 01:03:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/friends/ajax.php
r11858 r11889 89 89 $friend_id = (int) $_POST['item_id']; 90 90 91 $user = get_user_by( 'id', $friend_id ); 92 if ( ! $user ) { 93 wp_send_json_error( 94 array( 95 'feedback' => sprintf( 96 '<div class="bp-feedback error">%s</div>', 97 esc_html__( 'No member found by that ID.', 'buddypress' ) 98 ), 99 ) 100 ); 101 } 102 91 103 // In the 2 first cases the $friend_id is a friendship id. 92 104 if ( ! empty( $_POST['action'] ) && 'friends_accept_friendship' === $_POST['action'] ) {
Note: See TracChangeset
for help on using the changeset viewer.