diff --git src/bp-core/bp-core-avatars.php src/bp-core/bp-core-avatars.php
index 8b98657..2341ade 100644
|
|
function bp_core_fetch_avatar( $args = '' ) { |
622 | 622 | |
623 | 623 | // Main Gravatar URL args. |
624 | 624 | $url_args = array( |
625 | | 'd' => $default_grav, |
626 | 625 | 's' => $params['width'] |
627 | 626 | ); |
628 | 627 | |
| 628 | if ( 'gravatar_default' !== $bp->grav_default->{$params['object']} ) { |
| 629 | $url_args['d'] = $default_grav; |
| 630 | } |
| 631 | |
629 | 632 | // Custom Gravatar URL args. |
630 | 633 | if ( ! empty( $params['force_default'] ) ) { |
631 | 634 | $url_args['f'] = 'y'; |