The MU forums have moved to WordPress.org

Problems scripting blog creation (3 posts)

  1. Vimm
    Member
    Posted 17 years ago #

    I'm having some difficulty customizing the blog creation process. I can create a new blog just fine, however I'm unable to set any of the blog's options such as the title or description. From what I've observed the wpmu_create_blog() function does not appear to be setting the title correctly. When I look in the database the new blog has a duplicate option entry for "blogname" instead of it replacing the default entry. I have tried passing in the title and description as meta values with the same effect, and I have also tried using update_blog_option() and even directly running a SQL query, but no matter what I do the default values won't budge and a duplicate "option_name" entry is created instead.

    I've been pleasantly surprised with how intuitive MU-Wordpress is to code for, however this has me stumped. Any ideas? I am running version 1.2.2.

  2. drmike
    Member
    Posted 17 years ago #

    I think there's a couple of threads on the topic but here's the trac ticket:

    http://trac.mu.wordpress.org/ticket/354

  3. Vimm
    Member
    Posted 17 years ago #

    Thanks, that seems to fix the problem with wpmu_create_blog().

    http://trac.mu.wordpress.org/changeset/1002

About this Topic