Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#6735 closed enhancement (wontfix)

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

Reported by: henry.wright Owned by:
Priority: normal Milestone:
Component: Media Version: 2.4.0
Severity: normal 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 11 years ago.

Download all attachments as: .zip

Change History (4)

#1 @henry.wright
11 years ago

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

#2 @henry.wright
11 years ago

  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → 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
10 years ago

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