Opened 8 years ago
Closed 4 years ago
#7737 closed defect (bug) (fixed)
bp-custom.php - BP_AVATAR_DEFAULT no longer working
| Reported by: | Venutius | Owned by: | r-a-y |
|---|---|---|---|
| Priority: | normal | Milestone: | BuddyPress.org Sites |
| Component: | BuddyPress.org Sites | Version: | |
| Severity: | normal | Keywords: | needs-codex reporter-feedback |
| Cc: |
Description
The Codex describes setting a default avatar here:
https://codex.buddypress.org/themes/guides/customizing-buddypress-avatars/
Unfortunately this option no longer seems to work.
Change History (4)
#1
@
8 years ago
- Component Core → BuddyPress.org Sites
- Keywords needs-codex reporter-feedback added
- Milestone Awaiting Review → BuddyPress.org Sites
- Owner set to
- Summary wp-custom.php - BP_AVATAR_DEFAULT no longer working → bp-custom.php - BP_AVATAR_DEFAULT no longer working
#2
@
8 years ago
- Owner changed from to
- Status new → reviewing
Sorry @johnjamesjacoby for the ping. Looks like Trac auto-assigns you to tickets marked in the BuddyPress.org Sites milestone.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for noticing, @venutius! That document is a couple of years old.
Can you try the following things?
If you disable Gravatar fetching with:
Then the
BP_AVATAR_DEFAULTdefine should work. Can you confirm?However, if you want to keep Gravatar enabled, but have a different default avatar, can you try the following?
add_filter( 'bp_core_avatar_default', function() { return BP_AVATAR_DEFAULT; } );