Changeset 8514 for trunk/src/bp-friends/bp-friends-filters.php
- Timestamp:
- 06/14/2014 06:49:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-filters.php
r7999 r8514 39 39 40 40 if ( isset( $user_query->results[ $friend_id ] ) ) { 41 $user_query->results[ $friend_id ]->is_friend = $fs->is_confirmed; 41 if ( 0 == $fs->is_confirmed ) { 42 $status = $fs->initiator_user_id == bp_loggedin_user_id() ? 'pending' : 'awaiting_response'; 43 } else { 44 $status = 'is_friend'; 45 } 46 47 $user_query->results[ $friend_id ]->is_friend = $fs->is_confirmed; 48 $user_query->results[ $friend_id ]->friendship_status = $status; 42 49 } 43 50 }
Note: See TracChangeset
for help on using the changeset viewer.