- Timestamp:
- 09/16/2019 09:52:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/classes/class-bp-friends-friendship.php
r11865 r12459 198 198 * @param BP_Friends_Friendship $value Current friendship request object. 199 199 */ 200 do_action ( 'friends_friendship_after_save', array( &$this ) );200 do_action_ref_array( 'friends_friendship_after_save', array( &$this ) ); 201 201 202 202 return $result; … … 615 615 * @since 3.0.0 616 616 * 617 * @param int $user_id The ID of the primary user for whom we want 617 * @param int $user_id The ID of the primary user for whom we want 618 618 * to check friendships statuses. 619 * @param int|array|string $possible_friend_ids The IDs of the one or more users 619 * @param int|array|string $possible_friend_ids The IDs of the one or more users 620 620 * to check friendship status with primary user. 621 621 * @return null … … 629 629 foreach ( $possible_friend_ids as $friend_id ) { 630 630 // Check for cached items in both friendship directions. 631 if ( false === bp_core_get_incremented_cache( $user_id . ':' . $friend_id, 'bp_friends' ) 631 if ( false === bp_core_get_incremented_cache( $user_id . ':' . $friend_id, 'bp_friends' ) 632 632 || false === bp_core_get_incremented_cache( $friend_id . ':' . $user_id, 'bp_friends' ) ) { 633 633 $fetch[] = $friend_id; … … 650 650 $status_initiator = $status_friend = 'is_friend'; 651 651 } else { 652 $status_initiator = 'pending'; 652 $status_initiator = 'pending'; 653 653 $status_friend = 'awaiting_response'; 654 654 }
Note: See TracChangeset
for help on using the changeset viewer.