Fix the blog settings checkboxes on ms-sites.php. fixes #12889
git-svn-id: http://svn.automattic.com/wordpress/trunk@14102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user