Changeset 7999 for trunk/bp-friends/bp-friends-filters.php
- Timestamp:
- 02/27/2014 08:20:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-filters.php
r7558 r7999 9 9 10 10 /** 11 * Filter BP_User_Query::populate_extras to override each queried users fullname. 11 * Filter BP_User_Query::populate_extras to add confirmed friendship status. 12 * 13 * Each member in the user query is checked for confirmed friendship status 14 * against the logged-in user. 12 15 * 13 16 * @since BuddyPress (1.7.0) … … 22 25 function bp_friends_filter_user_query_populate_extras( BP_User_Query $user_query, $user_ids_sql ) { 23 26 global $bp, $wpdb; 27 28 // stop if user isn't logged in 29 if ( ! is_user_logged_in() ) { 30 return; 31 } 24 32 25 33 // Fetch whether or not the user is a friend of the current user
Note: See TracChangeset
for help on using the changeset viewer.