Skip to:

Opened 6 years ago

Closed 2 years ago

#7737 closed defect (bug) (fixed)

bp-custom.php - BP_AVATAR_DEFAULT no longer working

Reported by: venutius's profile Venutius Owned by: r-a-y's profile r-a-y
Milestone: Sites Priority: normal
Severity: normal Version:
Component: Sites Keywords: needs-codex reporter-feedback


The Codex describes setting a default avatar here:

Unfortunately this option no longer seems to work.

Change History (4)

#1 @r-a-y
6 years ago

  • Component changed from Core to Sites
  • Keywords needs-codex reporter-feedback added
  • Milestone changed from Awaiting Review to Sites
  • Owner set to johnjamesjacoby
  • Summary changed from wp-custom.php - BP_AVATAR_DEFAULT no longer working to bp-custom.php - BP_AVATAR_DEFAULT no longer working

Thanks for noticing, @venutius! That document is a couple of years old.

Can you try the following things?

If you disable Gravatar fetching with:

add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );

Then the BP_AVATAR_DEFAULT define 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() {
} );

#2 @r-a-y
6 years ago

  • Owner changed from johnjamesjacoby to r-a-y
  • Status changed from new to reviewing

Sorry @johnjamesjacoby for the ping. Looks like Trac auto-assigns you to tickets marked in the Sites milestone.

#3 @Venutius
6 years ago

@r-a-y Sorry for the delayed response, I don't think I'm getting trac notifications. Just tried it and I can confirm your solution works. I'll update the codex page.

#4 @imath
2 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed
Note: See TracTickets for help on using tickets.