[buddypress-trac] [BuddyPress] #979: SSL Support for bp_core_get_avatar()
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon Feb 15 20:17:13 UTC 2010
#979: SSL Support for bp_core_get_avatar()
------------------------------------------------+---------------------------
Reporter: r-a-y | Owner: Jason_JM
Type: defect | Status: accepted
Priority: minor | Milestone: 1.3
Keywords: ssl,gravatar,avatar,https, security |
------------------------------------------------+---------------------------
Comment(by r-a-y):
FYI, this is what I'm using currently in BP 1.1.3, and should work in 1.2
as well:
{{{
function bp_ssl_avatar($url) {
if(is_ssl())
$url = str_replace('http:','https:',$url);
return $url;
}
add_filter( 'bp_core_avatar_folder_url', 'bp_ssl_avatar');
function bp_ssl_gravatar($url) {
if(is_ssl())
$url = str_replace('http://www','https://secure',$url);
return $url;
}
add_filter( 'bp_gravatar_url', 'bp_ssl_gravatar');
}}}
With the new filters in BP 1.1+, I didn't need to apply SSL to
'''bp_core_get_root_domain''' like mentioned above.
I just needed SSL support for avatars.
These are not worthy to be in core as they're essentially filter
overrides, but will help for those looking for a solution.
--
Ticket URL: <http://trac.buddypress.org/ticket/979#comment:18>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list