wpmu_create_blog domain issue with wpmu 2.9.1 & latest BP trunk?

Just noticed this after trying out the latest trunk of BP with WPMU 2.91…

On bp-blogs-templatetags.php when a blog is created in bp_blogs_validate_blog_signup, surely we should be using $current_site->domain as opposed to $domain when wpmu_create_blog is executed?

The reason is because I have a test domain which uses http://www., however $domain in wp-settings.php slices this off, so all user created blogs are set to “mysite.com/userblog” as opposed to “www.mysite/userblog”.

At the moment this is creating a mismatch between the main blog, and subsequent user blogs, which means cookies are invalid when flicking between them.