Ticket #2152: patch.diff
File patch.diff, 1.3 KB (added by , 14 years ago) |
---|
-
bp-groups/bp-groups-templatetags.php
function bp_group_avatar( $args = '' ) { 284 284 'width' => false, 285 285 'height' => false, 286 286 'class' => 'avatar', 287 'item_id' => $groups_template->group->id, 287 288 'id' => false, 288 289 'alt' => __( 'Group avatar', 'buddypress' ) 289 290 ); … … function bp_group_avatar( $args = '' ) { 292 293 extract( $r, EXTR_SKIP ); 293 294 294 295 /* Fetch the avatar from the folder, if not provide backwards compat. */ 295 if ( !$avatar = bp_core_fetch_avatar( array( 'item_id' => $ groups_template->group->id, 'object' => 'group', 'type' => $type, 'avatar_dir' => 'group-avatars', 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height ) ) )296 if ( !$avatar = bp_core_fetch_avatar( array( 'item_id' => $item_id, 'object' => 'group', 'type' => $type, 'avatar_dir' => 'group-avatars', 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height ) ) ) 296 297 $avatar = '<img src="' . esc_attr( $groups_template->group->avatar_thumb ) . '" class="avatar" alt="' . esc_attr( $groups_template->group->name ) . '" />'; 297 298 298 299 return apply_filters( 'bp_get_group_avatar', $avatar );