Ticket #577 (closed defect: fixed)

Opened 5 months ago

Last modified 2 months ago

Sub domain blogs are always assigned site id=1

Reported by: mrarrow Assigned to: donncha
Priority: normal Milestone: WPMU 1.0
Component: component1 Version: 1.0
Severity: major Keywords:
Cc:

Description

There are hardcoded references in wpmu-functions.php to assign all sub domain blogs a site id=1 regardless of which domain (site id) a user has actually signed up from.

The site id therefore has to be manually changed in the MySQL database to reflect the correct domain, before a user can administer their own site.

This is surely not useful behaviour!!

Please see my forum discussion about this issue with andrea_r here: http://mu.wordpress.org/forums/topic.php?id=7827&page

Attachments

create_blog_site.patch (406 bytes) - added by momo360modena on 04/17/08 14:52:17.

Change History

04/17/08 14:51:50 changed by momo360modena

Try this patch.

04/17/08 14:52:17 changed by momo360modena

  • attachment create_blog_site.patch added.

04/19/08 08:11:39 changed by donncha

  • owner changed from somebody to donncha.
  • status changed from new to assigned.

The site_id is passed to wpmu_create_blog() as a default parameter. I just added that to the call in wp-signup.php in [1252] No need to change anything in wpmu-functions.php

Also, that patch adds a site_id to wpmu_create_user() but that function doesn't accept that many parameters ..

Please test as I don't have multiple domains configured on my testbed.

07/21/08 16:25:42 changed by donncha

  • status changed from assigned to closed.
  • resolution set to fixed.

Closing because of lack of feedback.