diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-22 15:53:21 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-22 15:53:21 +0000 |
| commit | 418799170de8631ce539e68939118f99ed83e002 (patch) | |
| tree | a396525757d62ece4dd21a31a35cfb14f03ed72b /wp-admin | |
| parent | 32bc3ec4a8eb7d01ffa1fbedfd16cebc28155ade (diff) | |
| download | wordpress-mu-418799170de8631ce539e68939118f99ed83e002.tar.gz wordpress-mu-418799170de8631ce539e68939118f99ed83e002.tar.xz wordpress-mu-418799170de8631ce539e68939118f99ed83e002.zip | |
Don't overwrite $blog_id
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1303 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin')
| -rw-r--r-- | wp-admin/wpmu-edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-admin/wpmu-edit.php b/wp-admin/wpmu-edit.php index baec3a3..5895532 100644 --- a/wp-admin/wpmu-edit.php +++ b/wp-admin/wpmu-edit.php @@ -124,17 +124,17 @@ switch( $_GET['action'] ) { } $wpdb->hide_errors(); - $blog_id = wpmu_create_blog($newdomain, $path, $title, $user_id , array( "public" => 1 ), $current_site->id); + $id = wpmu_create_blog($newdomain, $path, $title, $user_id , array( "public" => 1 ), $current_site->id); $wpdb->show_errors(); - if( !is_wp_error($blog_id) ) { + if( !is_wp_error($id) ) { if( get_user_option( $user_id, 'primary_blog' ) == 1 ) - update_user_option( $user_id, 'primary_blog', $blog_id, true ); + update_user_option( $user_id, 'primary_blog', $id, true ); $content_mail = sprintf( __( "New blog created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, $title ); wp_mail( get_site_option('admin_email'), sprintf(__('[%s] New Blog Created'), $current_site->site_name), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' ); wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'add-blog'), $_SERVER['HTTP_REFERER'] ) ); exit(); } else { - wp_die( $blog_id->get_error_message() ); + wp_die( $id->get_error_message() ); } break; |
