[buddypress-trac] [BuddyPress] #2968: User Avatar won't show up in blogs outside buddypress site.

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Dec 24 06:37:01 UTC 2010


#2968: User Avatar won't show up in blogs outside buddypress site.
-------------------------+-----------------------------
 Reporter:  chestnut_jp  |      Owner:
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:  1.2.6
 Keywords:               |
-------------------------+-----------------------------
 At line 570 of /bp-core/bp-core-avatars.php:

 $upload_dir[ 'baseurl' ] = str_replace( get_blog_option(
 $current_blog->blog_id, 'home' ) , get_blog_option( BP_ROOT_BLOG, 'home'
 ), $upload_dir[ 'baseurl' ] );

 should be changed to:

 $upload_dir[ 'baseurl' ] = get_home_url( BP_ROOT_BLOG, '/' ) .
 get_blog_option( BP_ROOT_BLOG, 'upload_path');

 This is because the "upload_dir" for Primary Site(= buddypress site) is
 fixed at "/wp-content/uploads/" by WordPress 3.x.

 Original Script points the "upload_dir" to /wp-
 content/blogs.dir/files/xxx, which is absolutely wrong.

 Avatars of users who use gravatar are not influenced by the original
 script, but avatars that users uploaded for themselves are not shown in
 blogs outsite buddypress site.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2968>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list