Ticket #394 (new defect)

Opened 1 year ago

Last modified 4 months ago

wpmu_create_blog() breaks with multiple use

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

Description

When using wpmu_create_blog() in wpmu-functions.php it will only work once. If called additional times the blog will be added to the wp_blogs table but its tables will not be created, resulting in an invalid state. This is caused by $wp_queries being set in-line in upgrade-schema.php while it must be updated before the second call to wpmu_create_blog(). This is solved by moving the initialization of $wp_queries into a function and calling it just before the tables are created (diff file attached).

Attachments

wp_create_blog.diff (18.7 kB) - added by Vimm on 07/30/07 22:30:43.
Bug patch
wpmu_create_blog_1_3.diff (18.6 kB) - added by Vimm on 01/23/08 20:08:23.
Updated for WPMU 1.3

Change History

07/30/07 22:30:43 changed by Vimm

  • attachment wp_create_blog.diff added.

Bug patch

01/23/08 20:08:23 changed by Vimm

  • attachment wpmu_create_blog_1_3.diff added.

Updated for WPMU 1.3

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

  • owner changed from somebody to donncha.