Changeset 6882
- Timestamp:
- 04/02/2013 05:34:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r6881 r6882 55 55 56 56 // Dimensions 57 $bp->avatar->thumb->width 58 $bp->avatar->thumb->height 59 $bp->avatar->full->width 60 $bp->avatar->full->height 57 $bp->avatar->thumb->width = BP_AVATAR_THUMB_WIDTH; 58 $bp->avatar->thumb->height = BP_AVATAR_THUMB_HEIGHT; 59 $bp->avatar->full->width = BP_AVATAR_FULL_WIDTH; 60 $bp->avatar->full->height = BP_AVATAR_FULL_HEIGHT; 61 61 62 62 // Upload maximums … … 66 66 // Defaults 67 67 $bp->avatar->thumb->default = BP_AVATAR_DEFAULT_THUMB; 68 $bp->avatar->full->default 68 $bp->avatar->full->default = BP_AVATAR_DEFAULT; 69 69 70 70 // These have to be set on page load in order to avoid infinite filter loops at runtime 71 71 $bp->avatar->upload_path = bp_core_avatar_upload_path(); 72 $bp->avatar->url 72 $bp->avatar->url = bp_core_avatar_url(); 73 73 74 74 // Cache the root blog's show_avatars setting, to avoid unnecessary … … 332 332 if ( true === $html ) { 333 333 return apply_filters( 'bp_core_fetch_avatar', '<img src="' . $avatar_url . '" class="' . esc_attr( $class ) . '"' . $css_id . $html_width . $html_height . $html_alt . $title . ' />', $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir ); 334 334 335 335 // ...or only the URL 336 336 } else {
Note: See TracChangeset
for help on using the changeset viewer.