Skip to:
Content

Opened 9 years ago

Closed 9 years ago

#2469 closed defect (bug) (duplicate)

Avatar location is incorrect for blogs other than the primary blog

Reported by: rebootnow Owned by: johnjamesjacoby
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.

Change History (2)

#1 @rebootnow
9 years ago

Note that there is a potential fix for this in the 1.2 branch. See the new...

  • bp_core_avatar_upload_path()
  • bp_core_avatar_url()

...that correct the result from wp_upload_dir() in the multiblog case.

#2 @johnjamesjacoby
9 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

This is fixed in the 1.2 branch and will be merged with trunk soon.

Thanks for the heads up!

Note: See TracTickets for help on using tickets.