Opened 15 years ago
Closed 15 years ago
#2469 closed defect (bug) (duplicate)
Avatar location is incorrect for blogs other than the primary blog
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | ||
Component: | Core | Keywords: | avatar, upload path |
Cc: |
Description
Changeset http://trac.buddypress.org/changeset/2984 (a fix to http://trac.buddypress.org/ticket/2317 ) introduced this problem.
It based the avatar path and url on wp_load_dir(), which gets the upload location for the currently active blog. I think BP's intention is to have a single avatar per user across the site, and therefore the upload location for the primary blog should be used.
From the notes in 2317 it seems that "get_blog_option()" is not a reliable source for the uploads location, but IMO would be a better solution than one that only works for a single primary blog.
Note that there is a potential fix for this in the 1.2 branch. See the new...
...that correct the result from wp_upload_dir() in the multiblog case.