diff --git src/bp-core/bp-core-avatars.php src/bp-core/bp-core-avatars.php
index 68365a7a7..b790012da 100644
|
|
add_action( 'wp_ajax_bp_avatar_set', 'bp_avatar_ajax_set' ); |
1371 | 1371 | function bp_core_get_avatar_data_url_filter( $retval, $id_or_email, $args ) { |
1372 | 1372 | $user = null; |
1373 | 1373 | |
| 1374 | if ( has_filter( 'pre_option_show_avatars', '__return_true', 100 ) ) { |
| 1375 | return $retval; |
| 1376 | } |
| 1377 | |
1374 | 1378 | // Ugh, hate duplicating code; process the user identifier. |
1375 | 1379 | if ( is_numeric( $id_or_email ) ) { |
1376 | 1380 | $user = get_user_by( 'id', absint( $id_or_email ) ); |