Skip to:
Content

BuddyPress.org

Ticket #7578: 7578.01.patch

File 7578.01.patch, 537 bytes (added by r-a-y, 2 years ago)
  • src/bp-core/bp-core-avatars.php

     
    14001400        $args['item_id'] = $user->ID;
    14011401        $args['html']    = false;
    14021402
     1403        // Use the 'full' type if size is larger than BP's thumb width.
     1404        if ( (int) $args['size'] > bp_core_avatar_thumb_width() ) {
     1405                $args['type'] = 'full';
     1406        }
     1407
    14031408        // Get the BuddyPress avatar URL.
    14041409        if ( $bp_avatar = bp_core_fetch_avatar( $args ) ) {
    14051410                return $bp_avatar;