[buddypress-trac] [BuddyPress] #2671: 'bp_core_mysteryman_src' filter needs to be honored widely
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sat Oct 9 12:58:46 UTC 2010
#2671: 'bp_core_mysteryman_src' filter needs to be honored widely
----------------------+-----------------------------------------------------
Reporter: lucianop | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.3
Component: Core | Keywords: avatar
----------------------+-----------------------------------------------------
The default 'mystery man' image can be overriden by means of the
'bp_core_mysteryman_src' filter. However, there are instances in the core
that the filter does not get applied, namely:
1. When the user just signed up for an account (the original mystery man
appears, even though the filter should have been applied).
In bp_signup_avatar() function (in bp-core-templatetags.php), the filter
should be applied, instead of .
{{{$default_grav = apply_filters( 'bp_core_mysteryman_src',
BP_AVATAR_DEFAULT, $grav_size );}}}
instead of the hardcoded:
{{{$default_grav = BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg';}}}
The same is true for the avatar shown in the admin UI (code in bp-core-
admin.php). 'mistery-man.jpg' should not be hardcoded there as well.
Sorry for being verbose (instead of attaching a patch), as I don't know
how to create patches.
--
Ticket URL: <http://trac.buddypress.org/ticket/2671>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list