Skip to:
Content

BuddyPress.org

Ticket #6278: 6278.09.patch

File 6278.09.patch, 866 bytes (added by imath, 5 years ago)
  • src/bp-core/classes/class-bp-attachment-avatar.php

    diff --git src/bp-core/classes/class-bp-attachment-avatar.php src/bp-core/classes/class-bp-attachment-avatar.php
    index 1414a54..b36337a 100644
    class BP_Attachment_Avatar extends BP_Attachment { 
    239239                $avatar_types = array( 'full' => '', 'thumb' => '' );
    240240
    241241                foreach ( $avatar_types as $key_type => $type ) {
    242                         $args['dst_w']    = bp_core_avatar_dimension( $key_type, 'width' );
    243                         $args['dst_h']    = bp_core_avatar_dimension( $key_type, 'height' );
     242                        $args['dst_w']    = bp_core_avatar_full_width();
     243                        $args['dst_h']    = bp_core_avatar_full_height();
    244244                        $args['dst_file'] = $avatar_folder_dir . '/' . wp_hash( $absolute_path . time() ) . '-bp' . $key_type . '.' . $ext;
    245245
    246246                        $avatar_types[ $key_type ] = parent::crop( $args );