summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/wpmu-edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-admin/wpmu-edit.php')
-rw-r--r--wp-inst/wp-admin/wpmu-edit.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/wp-inst/wp-admin/wpmu-edit.php b/wp-inst/wp-admin/wpmu-edit.php
index 02beff9..db2a610 100644
--- a/wp-inst/wp-admin/wpmu-edit.php
+++ b/wp-inst/wp-admin/wpmu-edit.php
@@ -37,10 +37,11 @@ switch( $_GET[ 'action' ] ) {
}
// update blogs table
- if( $_POST[ 'blog' ][ 'blogname' ] != 'main' ) {
+ if( $_POST[ 'blog' ][ 'domain' ] != $current_site->domain ) {
$query = "UPDATE ".$wpdb->blogs."
- SET blogname = '".$_POST[ 'blog' ][ 'blogname' ]."',
- registered = '".$_POST[ 'blog' ][ 'registered' ]."',
+ SET domain = '".$_POST[ 'blog' ][ 'domain' ]."',
+ path = '".$_POST[ 'blog' ][ 'path' ]."',
+ registered = '".$_POST[ 'blog' ][ 'registered' ]."',
last_updated = '".$_POST[ 'blog' ][ 'last_updated' ]."',
is_public = '".$_POST[ 'blog' ][ 'is_public' ]."'
WHERE blog_id = '".$_POST[ 'id' ]."'";