[buddypress-trac] [BuddyPress] #1717: Use BP constants for xprofile_avatar_upload_dir

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Jan 28 05:46:46 UTC 2010

#1717: Use BP constants for xprofile_avatar_upload_dir
Reporter:  lunabyte             |       Owner:     
    Type:  defect               |      Status:  new
Priority:  major                |   Milestone:  1.2
Keywords:  avatar, avatar path  |  

Comment(by lunabyte):

 Update to add:

 bp-core-avatars.php, bp_core_avatar_handle_upload();

 $bp->avatar_admin->image->url  should also be updated to use
 BP_AVATAR_UPLOAD_PATH. As a note it already uses BP_AVATAR_URL.

 Also, in bp_core_avatar_handle_crop();

 Checking for the file (!file_exists) doesn't appear to need anything other
 than $original_file, as it's passing the entire path.

 $avatar_folder_dir right below that should be setup to use

 I'm sure there will be a few more places. I'll add them as I find them.

Ticket URL: <http://trac.buddypress.org/ticket/1717#comment:1>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list