Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 6 months ago

#8077 closed defect (bug) (fixed)

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

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

Description

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 3 years ago.

Download all attachments as: .zip

Change History (5)

@oztaser
3 years ago

#1 @oztaser
3 years ago

  • Keywords has-patch added

#2 @oztaser
18 months ago

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

#3 @imath
6 months 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
6 months 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.