Re: Url being retrieved strangely
Ok guys, @pandragon has the solution. Here it is.
At the bottom of the file copy paste these in over the ones that are there.
This is the edit in bp-core-avatar.php that fixed my problem :
function bp_core_avatar_upload_path() {
if ( bp_core_is_multisite() ) {
if (strlen(get_blog_option( BP_ROOT_BLOG, ‘upload_path’ )) < 3) {
update_blog_option( BP_ROOT_BLOG, ‘upload_path’, ‘wp-content/uploads’ );
}
$path = ABSPATH . get_blog_option( BP_ROOT_BLOG, ‘upload_path’ );
}
else {
if ( !$path = get_option( ‘upload_path’ ) )
$path = WP_CONTENT_DIR . ‘/uploads’;
else
$path = ABSPATH . $path;
}
return apply_filters( ‘bp_core_avatar_upload_path’, $path );
}
function bp_core_avatar_url() {
if ( !bp_core_is_multisite() )
return WP_CONTENT_URL;
return apply_filters( ‘bp_core_avatar_url’, get_blog_option( BP_ROOT_BLOG, ‘siteurl’ ) . ‘/wp-content’ );
//print get_blog_option( BP_ROOT_BLOG, ‘siteurl’ ); exit;
}
Thank you pandragon!