diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-08 12:13:51 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-08 12:13:51 +0000 |
| commit | 1022926b6cfce08b0323044edcb602e942fa80cd (patch) | |
| tree | e92999e36b3f73386d44914b2bb56a15b3eda40b /wp-inst/wp-admin/wpmu-edit.php | |
| parent | e57a203929408d17a888c9e26107a47c10f687a7 (diff) | |
Updated caching on sitestats.
is_public -> public, make sure to run upgrade script once!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@424 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/wpmu-edit.php')
| -rw-r--r-- | wp-inst/wp-admin/wpmu-edit.php | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/wp-inst/wp-admin/wpmu-edit.php b/wp-inst/wp-admin/wpmu-edit.php index 91ae613..8b84764 100644 --- a/wp-inst/wp-admin/wpmu-edit.php +++ b/wp-inst/wp-admin/wpmu-edit.php @@ -133,8 +133,8 @@ switch( $_GET[ 'action' ] ) { path = '".$_POST[ 'blog' ][ 'path' ]."', registered = '".$_POST[ 'blog' ][ 'registered' ]."', last_updated = '".$_POST[ 'blog' ][ 'last_updated' ]."', - is_public = '".$_POST[ 'blog' ][ 'is_public' ]."' - WHERE blog_id = '".$id."'"; + public = '".$_POST[ 'blog' ][ 'public' ]."' + WHERE blog_id = '".$id."'"; $wpdb->query( $query ); } @@ -202,25 +202,14 @@ switch( $_GET[ 'action' ] ) { if( is_site_admin() == false ) { die( __('<p>You do not have permission to access this page.</p>') ); } - $is_archived = $wpdb->get_row( "SELECT option_value FROM {$wpmuBaseTablePrefix}{$_GET[ 'id' ]}_options WHERE option_name = 'is_archived'" ); - $is_archived = get_blog_option( $_GET[ 'id' ], "is_archived" ); - if( $is_archived ) { - update_blog_option( $_GET[ 'id' ], "is_archived", "no" ); - } else { - add_blog_option( $_GET[ 'id' ], "is_archived", "no" ); - } + update_archived( $_GET[ 'id' ], '0' ); header( "Location: wpmu-blogs.php?updated=true" ); break; case "deactivateblog": if( is_site_admin() == false ) { die( __('<p>You do not have permission to access this page.</p>') ); } - $is_archived = get_blog_option( $_GET[ 'id' ], "is_archived" ); - if( $is_archived ) { - update_blog_option( $_GET[ 'id' ], "is_archived", "yes" ); - } else { - add_blog_option( $_GET[ 'id' ], "is_archived", "yes" ); - } + update_archived( $_GET[ 'id' ], '1' ); header( "Location: wpmu-blogs.php?updated=true" ); break; case "updateuser": |
