Skip to:
Content

BuddyPress.org

Changeset 9704


Ignore:
Timestamp:
04/06/2015 05:03:23 PM (10 years ago)
Author:
imath
Message:

Prevents a possible regression in the crop() function of BP_Attachment_Avatar

Instead of using bp_core_avatar_dimension(), use bp_core_avatar_full_width() and bp_core_avatar_full_height() when cropping an avatar, like it was the case in 2.2.

See #6278

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-attachment-avatar.php

    r9660 r9704  
    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
Note: See TracChangeset for help on using the changeset viewer.