diff --git src/bp-core/bp-core-avatars.php src/bp-core/bp-core-avatars.php
index 8b98657..ee251e3 100644
|
|
add_action( 'wp_ajax_bp_avatar_set', 'bp_avatar_ajax_set' ); |
1326 | 1326 | function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt = '', $args = array() ) { |
1327 | 1327 | global $pagenow; |
1328 | 1328 | |
1329 | | // Do not filter if inside WordPress options page. |
1330 | | if ( 'options-discussion.php' == $pagenow ) |
| 1329 | // Don't filter if inside WordPress options page and force_default is true. |
| 1330 | if ( 'options-discussion.php' === $pagenow && true === $args['force_default'] ) |
1331 | 1331 | return $avatar; |
1332 | 1332 | |
1333 | 1333 | // If passed an object, assume $user->user_id. |