Skip to:
Content

Opened 3 years ago

Last modified 19 months ago

#6555 new defect (bug)

Avatar upload dir filters set 'basedir' and 'baseurl' incorrectly

Reported by: boonebgorges Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Core Keywords: needs-patch good-first-bug
Cc: info@…

Description

bp_core_signup_avatar_upload_dir(), xprofile_avatar_upload_dir(), and groups_avatar_upload_dir() all filter 'upload_dir' to provide object-type-specific upload locations for avatars. The settings ultimately used by WP for the uploaded files come from the 'path' and 'subdir' values returned by these functions; 'basedir' and 'baseurl' are not used. However, these values *are* used to generate certain error messages (see eg the end of wp_upload_dir()), and we currently set them incorrectly, so that the error message gives an incorrect path (eg wp-content/uploads/group-avatars/123/group-avatars/123).

Change History (3)

#1 @wdfee
2 years ago

  • Cc info@… added

This ticket was mentioned in Slack in #buddypress by boone. View the logs.


21 months ago

#3 @DJPaul
19 months ago

  • Component changed from API to Core
Note: See TracTickets for help on using tickets.