#24596 closed defect (bug) (invalid)
get_avatar() is using BuddyPress thumb image
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.5.1 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
I am using the get_avatar() function in the loop to display the post author's avatar.
<?php $author = get_the_author(); ?>
<?php echo get_avatar( get_the_author_meta('ID'), 120, '', $author ); ?>
In bp-custom.php, I have set a default height and width on BuddyPress avatars
define ( 'BP_AVATAR_THUMB_WIDTH', 40 ); define ( 'BP_AVATAR_THUMB_HEIGHT', 40 );
Even though my get_avatar() function is outputting an avatar 120x120 in size, the 40x40 BuddyPress thumb is being used which is resulting in a stretched avatar being displayed (see attached screenshot).
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
BuddyPress replaces the default
get_avatar()output withbp_core_fetch_avatar_filter():http://buddypress.trac.wordpress.org/browser/tags/1.7.2/bp-core/bp-core-avatars.php#L692
This should be reported on BuddyPress Trac: http://buddypress.trac.wordpress.org/.