Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#6735 closed enhancement (wontfix)

It isn't possible to use Gravatar && filter the "avatar default"

Reported by: henrywright's profile henry.wright Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.4.0
Component: Media Keywords:
Cc:

Description

If Gravatar is disabled using the bp_core_fetch_avatar_no_grav hook, the bp_core_default_avatar_{object} hook is executed. Therefore, the latter hook allows us to filter the "avatar default" when Gravatar isn't used.

It isn't currently possible to use Gravatar and filter the "avatar default".

Ref: https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-avatars.php#L572

Attachments (1)

6735.diff (790 bytes) - added by henry.wright 9 years ago.

Download all attachments as: .zip

Change History (4)

@henry.wright
9 years ago

#1 @henry.wright
9 years ago

Attached is one possible solution. It allows the default Gravatar src value to be filtered (the d parameter).

#2 @henry.wright
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Think I'll close this request because an extremely small number of people will need such a filter. Please feel free to reopen if needed.

#3 @DJPaul
8 years ago

  • Component changed from API - Avatars to Media
Note: See TracTickets for help on using tickets.