Function is_main_site uses $current_site->blog_id instead of $current_site->id
|Reported by:||matslundberg||Owned by:|
The function is_main_site uses $current_site->blog_id to compare if current blog is main site, should instead use $current_site->id. The $current_site->blog_id is not defined. $current_site (from what I can tell) loaded from table wp_site, which doesn't contain any blog_id column.
This leads to issues when trying the registration form for MS sites. I get a redirection-loop for a MS installation.