#3977 closed enhancement (fixed)
"Delete Avatar" link should not show up if user did not upload an avatar
| Reported by: | heruputra | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6 |
| Component: | Core | Version: | 1.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
when user delete their avatar, their avatar will change to the default avatar (wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg) and avatar’s delete link is not disappear.
i think “delete link” should disappear when a user use a default avatar.
i mean not “change the default avatar”, but when a user use default avatar, i want the delete avatar link disappear.
because the fact is when user do not upload any avatar and the default avatar appear but delete link is not disappear. its weird if i am the user, because i do not upload any avatar but there are a link to delete avatar in change avatar page
how to solve this problem ?
thank you.
Attachments (1)
Change History (7)
#2
@
15 years ago
- Summary Buddypress Default Avatar → "Delete Avatar" link should not show up if user did not upload an avatar
#3
@
15 years ago
- Milestone Awaiting Review → 1.6
- Type defect (bug) → enhancement
Good patch, it works, but: should we worry about the check failing because there are different filters used in bp_core_avatar_default() and bp_core_avatar_default()? Should we make those filters identical?
#4
@
15 years ago
Yes, that's a valid concern.
I suppose you're referring to the following filters?
- 'bp_core_mysteryman_src'
- 'bp_core_default_avatar_$object' (or rather 'bp_core_default_avatar_user')
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Confirmed. Here's a quick patch against trunk.