Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Single sitewide avatar per user?


Windhamdavid
Participant

@windhamdavid

I do however see these bits of goodness in the trunk which is indicative of my current structure and leads me to believe that the fault is as @rebootnow called it. It’s still asking for get_current_site() when displaying avatars on a secondary blog with multisite enabled.

+ if ( bp_core_is_multisite() )
+ $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;
+ }

and


if ( bp_core_is_multisite() && BP_ROOT_BLOG != $current_blog->blog_id )
- $upload_dir = str_replace( $current_blog->blog_id, BP_ROOT_BLOG, BLOGUPLOADDIR );
-
- return apply_filters( 'bp_core_avatar_upload_path', $upload_dir );

Skip to toolbar