[buddypress-trac] [BuddyPress Trac] #5717: Default thumb avatar is not used when called via (any function that utilizes) bp_core_fetch_avatar()
buddypress-trac
noreply at wordpress.org
Wed Jun 18 14:33:39 UTC 2014
#5717: Default thumb avatar is not used when called via (any function that
utilizes) bp_core_fetch_avatar()
--------------------------+------------------------------
Reporter: M-BP | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 2.0
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by M-BP):
What do you think of this (from l. 466 onwards)?
I've made some tests and it seems to work but maybe it can be improved.
{{{
// No avatar was found, and we've been told not to use a gravatar.
} else {
if ($params['type'] == 'full') {
$gravatar = apply_filters(
"bp_core_default_avatar_$object", bp_core_avatar_default( 'local' ),
$params );
}
else {
$gravatar = apply_filters(
"bp_core_default_avatar_thumb_$object", bp_core_avatar_default_thumb(
'local' ), $params );
}
}
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5717#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list