diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index fcf7ce5d9e..8a79b0ffe9 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -9,7 +9,7 @@ require_once( './admin.php' ); -if ( !is_multisite() ) +if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); if ( empty( $_GET['action'] ) ) @@ -248,6 +248,9 @@ switch ( $_GET['action'] ) { // update blogs table $blog_data = stripslashes_deep( $_POST['blog'] ); + $blog_data_checkboxes = array( 'public', 'archived', 'spam', 'mature', 'deleted' ); + foreach ( $blog_data_checkboxes as $c ) + $blog_data[ $c ] = ! empty( $_POST['blog'][ $c ] ); update_blog_details( $id, $blog_data ); // get blog prefix diff --git a/wp-admin/ms-sites.php b/wp-admin/ms-sites.php index 7ecfe35f3b..4435a178ab 100644 --- a/wp-admin/ms-sites.php +++ b/wp-admin/ms-sites.php @@ -9,7 +9,7 @@ require_once( './admin.php' ); -if ( !is_multisite() ) +if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); if ( ! current_user_can( 'manage_sites' ) ) @@ -124,11 +124,9 @@ switch ( $action ) {