From 915bc58b28938ef000ccbdc774fb6886299797b2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 28 Apr 2010 08:15:45 +0000 Subject: [PATCH] Restore radios for MS site flags, as the schema supports other values. see #12832 git-svn-id: https://develop.svn.wordpress.org/trunk@14277 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/ms-edit.php | 3 --- wp-admin/ms-sites.php | 26 ++++++++++++++------------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index a3bdf0144d..1ed20f1c74 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -248,9 +248,6 @@ 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 b40857f5ec..d00cb8a050 100644 --- a/wp-admin/ms-sites.php +++ b/wp-admin/ms-sites.php @@ -120,24 +120,26 @@ switch ( $action ) { - - - __( 'Public' ) ); + $radio_fields = array( 'public' => __( 'Public' ) ); if ( ! $is_main_site ) { - $checked_fields['archived'] = __( 'Archived' ); - $checked_fields['spam'] = __( 'Spam' ); - $checked_fields['deleted'] = __( 'Deleted' ); + $radio_fields['archived'] = __( 'Archived' ); + $radio_fields['spam'] = __( 'Spam' ); + $radio_fields['deleted'] = __( 'Deleted' ); } - $checked_fields['mature'] = __( 'Mature' ); - foreach ( $checked_fields as $field_key => $field_label ) { + $radio_fields['mature'] = __( 'Mature' ); + foreach ( $radio_fields as $field_key => $field_label ) { ?> - $field_key ); ?> /> -
- + + + + $field_key, 1 ); ?> /> + + $field_key, 0 ); ?> /> + +