Changeset 1356 for trunk/bp-friends/bp-friends-templatetags.php
- Timestamp:
- 04/20/2009 10:56:00 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends/bp-friends-templatetags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-templatetags.php
r1238 r1356 101 101 $this->in_the_loop = true; 102 102 $this->friendship = $this->next_friendship(); 103 103 104 104 if ( 'requests' == $bp->current_action ) { 105 105 $this->friendship = new BP_Friends_Friendship( $this->friendship ); 106 $this->friendship->user_id = ( $this->friendship->friend_user_id == $bp->loggedin_user->id ) ? $this->friendship->initiator_user_id : $this->friendship->friend_user_id; 106 107 } else { 107 108 $this->friendship = (object) $this->friendship; 108 109 109 110 if ( !$this->friendship->friend = wp_cache_get( 'bp_user_' . $this->friendship->user_id, 'bp' ) ) { 110 111 $this->friendship->friend = new BP_Core_User( $this->friendship->user_id ); … … 112 113 } 113 114 } 114 115 115 116 if ( 0 == $this->current_friendship ) // loop has just started 116 117 do_action('loop_start'); … … 263 264 </form> 264 265 <?php 266 } 267 268 function bp_friends_is_filtered() { 269 if ( isset( $_POST['friend-search-box'] ) ) 270 return true; 271 272 return false; 265 273 } 266 274
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)