Opened 13 years ago
Closed 13 years ago
#3922 closed enhancement (fixed)
Add filter to bp-core-avatars -> bp_core_fetch_avatar for $class
Reported by: | blindmoe | Owned by: | |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | minor | Version: | 1.5.3 |
Component: | Core | Keywords: | needs-patch dev-feedback |
Cc: |
Description
Inside bp_core_fetch_avatar there are filters ran for just about every argument, except $class. I suggest you add this line:
$class = apply_filters( 'bp_core_avatar_class', $class, $item_id, $object );
at line 146 so devs can adjust avatar classes if they need to.
Thanks
Attachments (1)
Change History (7)
#2
@
13 years ago
- Milestone changed from Awaiting Review to 1.6
- Severity changed from normal to minor
If someone wants to throw together a quick patch, and add $params onto all of the other filters, that would be appreciated.
Note: See
TracTickets for help on using
tickets.
This should actually be:
$class = apply_filters( 'bp_core_avatar_class', $class, $item_id, $object, $params );