diff --git src/bp-core/bp-core-avatars.php src/bp-core/bp-core-avatars.php
index cf7733c2c..3ffa26d12 100644
|
|
function bp_core_avatar_handle_upload( $file, $upload_dir_filter ) { |
979 | 979 | $bp->avatar_admin->image = new stdClass(); |
980 | 980 | |
981 | 981 | // We only want to handle one image after resize. |
982 | | if ( empty( $bp->avatar_admin->resized ) ) { |
| 982 | if ( empty( $bp->avatar_admin->resized ) || is_wp_error( $bp->avatar_admin->resized ) ) { |
983 | 983 | $bp->avatar_admin->image->file = $bp->avatar_admin->original['file']; |
984 | 984 | $bp->avatar_admin->image->dir = str_replace( $upload_path, '', $bp->avatar_admin->original['file'] ); |
985 | 985 | } else { |