Skip to:

Opened 5 years ago

Closed 3 years ago

#8077 closed defect (bug) (fixed)

`extra_attr` parameter doesn't work in bp_core_fetch_avatar()

Reported by: oztaser's profile oztaser Owned by: imath's profile imath
Milestone: 8.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch


When sending string arguments to bp_core_fetch_avatar(), extra_attr doesn't work. I think we should use parsed $params array to fix this issue.

Attachments (1)

8077.diff (489 bytes) - added by oztaser 5 years ago.

Download all attachments as: .zip

Change History (5)

5 years ago

#1 @oztaser
5 years ago

  • Keywords has-patch added

#2 @oztaser
4 years ago

I'm still having trouble with 6.0. What you guys think about applying the patch?

#3 @imath
3 years ago

  • Milestone changed from Awaiting Review to 8.0.0

Hi @oztaser

Sorry for this very late reply. I agree we should use $params instead of $args.

#4 @imath
3 years ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 12894:

Use the parsed extra_attr parameter in bp_core_fetch_avatar()

This makes sure passing the extra_attr inside a string of arguments is taken in account into the generated HTML output of the avatar.

Props oztaser

Fixes #8077

Note: See TracTickets for help on using tickets.