Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Avatars of member not showing in all blogs


dancort
Participant

@dancort

@overdrive I don’t if it may help you, but helped me:

function bp_core_avatar_url_fix() {
global $current_blog;

// Get upload directory information from current site
$upload_dir = wp_upload_dir();

// If multisite, and current blog does not match root blog, make adjustments
if ( bp_core_is_multisite() && BP_ROOT_BLOG != $current_blog->blog_id )
$upload_dir = ‘/wp-content/uploads’;

return $upload_dir;
}
add_action( ‘bp_core_avatar_url’, ‘bp_core_avatar_url_fix’);

Skip to toolbar