[buddypress-trac] [BuddyPress Trac] #6555: Avatar upload dir filters set 'basedir' and 'baseurl' incorrectly

buddypress-trac noreply at wordpress.org
Tue Jul 14 18:47:10 UTC 2015

#6555: Avatar upload dir filters set 'basedir' and 'baseurl' incorrectly
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  API           |    Version:
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
 `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

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6555>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list