[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:18:17 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 |
--------------------------------+-------------------------------------------
bp-xprofile.php: function xprofile_avatar_upload_dir();
$path is set with the constant BP_AVATAR_UPLOAD_PATH.
$newurl then replaces WP_CONTENT_DIR with WP_CONTENT_URL.
If BP_AVATAR_UPLOAD_PATH is not in the same path as WP_CONTENT_DIR, it
throws avatars into chaos for everything from upload to display, and in
between.
Suggest $newurl be changed to honor BP defined constants as follows:
$newurl = str_replace( BP_AVATAR_UPLOAD_PATH, BP_AVATAR_URL, $path );
Thus bringing the function inline with using the same set of constants.
--
Ticket URL: <http://trac.buddypress.org/ticket/1717>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list