I’m using the wpmu_create_blog function to creates blogs within a plug-in.
However, as noted my Vimm ( http://mu.wordpress.org/forums/topic.php?id=5720&page&replies=6 ), the function doesn’t seem to work properly: it creates the first blog fine, but all subsequent blogs fail. Vimm’s comments: “The queries to create the new blog's tables are loaded into $wp_queries in upgrade-schema.php but it's loaded in-line, not via a function. This means it's only set once, so when you call wpmu_create_blog() a second time it still has the table values from the first time.”
I’ve checked Vimm’s solution ( http://trac.mu.wordpress.org/ticket/394
), but I can’t follow it or it’s not compatible with the latest version of MU. Can anyone help please, as this is holding up a large project in our company.
Many thanks.