#276 closed defect (bug) (fixed)
Group create storing wrong url when user logs into a subdomain to create a group
Reported by: | burtadsit | Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | ||
Component: | Keywords: | avatars, groups | |
Cc: |
Description
When a user logs into a subdomain burt.mysite.org and then creates a group, the url mysite.org/members/burt/wp-content ... is stored instead of mysite.org/wp-content ...
The global $bploggedin_domain? contains the domain and the member slug. Slug the right term? Anyway, the function groups_get_avatar_hrefs() happily replaces the ABSPATH with the wrong url and it gets stored.
Thereby insuring nobody ever sees that avatar again. :) I haven't figured out why $bploggedin_domain? contains the wrong url yet. Should that even be used? I'm tired and I wish I had a global var reference next to me. (I know, write one). What should be used get_bloginfo(1, 'siteurl')? Why do a db query if something more appropriate is avail.
Change History (5)
#2
@
16 years ago
I talked to Andy about this ticket. This is just a reminder for him.
/mu-plugins/bp-groups.php in function groups_get_avatar_hrefs() line number 1152 now reads:
$src = $bploggedin_domain?;
change it to:
$src = trailingslashit($bproot_domain?);
Fixes the upload group avatar when logging into a subdomain problem.
Since I reported a group avatar problem under windows, I guess I'll tackle both of 'em at the same time. That one was #265