Bug Report (class-bp-attachment-avatar.php)
-
Since last ver. when the users upload their avatar the thumb has the same size of the full size image.
Please fix it on next update, Thanks.
Bug is here:
inside class-bp-attachment-avatar.php// Get the file extension
$data = @getimagesize( $absolute_path );
$ext = $data[‘mime’] == ‘image/png’ ? ‘png’ : ‘jpg’;$args[‘original_file’] = $absolute_path;
$args[‘src_abs’] = false;
$avatar_types = array( ‘full’ => ”, ‘thumb’ => ” );foreach ( $avatar_types as $key_type => $type ) {
$args[‘dst_w’] = bp_core_avatar_full_width();
$args[‘dst_h’] = bp_core_avatar_full_height();
/*BUG FIX start*/
if($key_type==’thumb’){
$args[‘dst_w’] = bp_core_avatar_thumb_width();
$args[‘dst_h’] = bp_core_avatar_thumb_height();
}
/*BUG FIX end*/
$args[‘dst_file’] = $avatar_folder_dir . ‘/’ . wp_hash( $absolute_path . time() ) . ‘-bp’ . $key_type . ‘.’ . $ext;$avatar_types[ $key_type ] = parent::crop( $args );
}
- The topic ‘Bug Report (class-bp-attachment-avatar.php)’ is closed to new replies.