#5380 closed defect (bug) (fixed)
Delete avatar link is showing even if no avatar was uploaded
| Reported by: | imath | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | high | Milestone: | 2.0 |
| Component: | Media | Version: | |
| Severity: | normal | 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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks good to me. Let's write a unit test so that this doesn't get broken again.