#5380 closed defect (bug) (fixed)
Delete avatar link is showing even if no avatar was uploaded
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.0 | Priority: | high |
| Severity: | normal | Version: | |
| Component: | Media | Keywords: | has-patch needs-unit-tests |
| Cc: |
Description
Since 7769 bp_get_user_has_avatar() returns true even if the user haven't uploaded an avatar.
As a result, in change-avatar screen and in the /wp-admin community profile, the link to delete the avatar is showing.
The diff attached seems to solve the issue.
Attachments (2)
Change History (7)
#2
@
12 years ago
While working on #5429, i've noticed the bp_get_group_has_avatar() also needed to be adapted. In 5380.01.diff I've included a group id argument to be able to check even if the current group is not set.
Note: See
TracTickets for help on using
tickets.
Looks good to me. Let's write a unit test so that this doesn't get broken again.