Changeset 612

Show
Ignore:
Timestamp:
06/28/06 12:26:36 (2 years ago)
Author:
donncha
Message:

Some meta information goes in blog options, others into wp_blogs. (should fix #46 WRT "public" problem)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/wpmu-functions.php

    r610 r612  
    11561156        restore_current_blog(); 
    11571157 
    1158         if ( is_array($meta) ) foreach ($meta as $key => $value) 
     1158        if ( is_array($meta) ) foreach ($meta as $key => $value) { 
     1159                update_blog_status( $blog_id, $key, $value ); 
    11591160                update_blog_option( $blog_id, $key, $value ); 
     1161        } 
    11601162 
    11611163        do_action( 'wpmu_new_blog', $blog_id, $user_id ); 
  • trunk/wp-signup.php

    r603 r612  
    318318// Main 
    319319$blog_id = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 
     320if( $_POST['blog_public'] != 1 ) 
     321        $_POST['blog_public'] = 0; 
    320322         
    321323switch ($_POST['stage']) {