1 | Index: wp-content/plugins/buddypress/bp-friends/bp-friends-templatetags.php |
---|
2 | =================================================================== |
---|
3 | --- wp-content/plugins/buddypress/bp-friends/bp-friends-templatetags.php (revision 982) |
---|
4 | +++ wp-content/plugins/buddypress/bp-friends/bp-friends-templatetags.php (working copy) |
---|
5 | @@ -70,10 +70,10 @@ |
---|
6 | <ul class="item-list" id="random-members-list"> |
---|
7 | <?php for ( $i = 0; $i < count( $user_ids['users'] ); $i++ ) { ?> |
---|
8 | <li> |
---|
9 | - <a href="<?php echo bp_core_get_user_domain( $user_ids['users'][$i]->user_id ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $user_ids['users'][$i]->user_id, 'type' => 'thumb' ) ) ?></a> |
---|
10 | - <h5><?php echo bp_core_get_userlink( $user_ids['users'][$i]->user_id ) ?></h5> |
---|
11 | + <a href="<?php echo bp_core_get_user_domain( $user_ids['users'][$i]->id ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $user_ids['users'][$i]->id, 'type' => 'thumb' ) ) ?></a> |
---|
12 | + <h5><?php echo bp_core_get_userlink( $user_ids['users'][$i]->id ) ?></h5> |
---|
13 | <?php if ( function_exists( 'xprofile_get_random_profile_data' ) ) { ?> |
---|
14 | - <?php $random_data = xprofile_get_random_profile_data( $user_ids['users'][$i]->user_id, true ); ?> |
---|
15 | + <?php $random_data = xprofile_get_random_profile_data( $user_ids['users'][$i]->id, true ); ?> |
---|
16 | <div class="profile-data"> |
---|
17 | <p class="field-name"><?php echo $random_data[0]->name ?></p> |
---|
18 | <?php echo $random_data[0]->value ?> |
---|
19 | @@ -82,7 +82,7 @@ |
---|
20 | |
---|
21 | <div class="action"> |
---|
22 | <?php if ( function_exists( 'bp_add_friend_button' ) ) { ?> |
---|
23 | - <?php bp_add_friend_button( $user_ids['users'][$i]->user_id ) ?> |
---|
24 | + <?php bp_add_friend_button( $user_ids['users'][$i]->id ) ?> |
---|
25 | <?php } ?> |
---|
26 | </div> |
---|
27 | </li> |
---|