<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[13796] trunk/wp-admin: More ms-options cleanup.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13796">13796</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-03-22 06:02:04 +0000 (Mon, 22 Mar 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>More ms-options cleanup. Add label elements, and transition to checkboxes from radios where we can. Also fix notice in global_terms_enabled post handling.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminmseditphp">trunk/wp-admin/ms-edit.php</a></li>
<li><a href="#trunkwpadminmsoptionsphp">trunk/wp-admin/ms-options.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminmseditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-edit.php (13795 => 13796)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-edit.php        2010-03-22 04:19:10 UTC (rev 13795)
+++ trunk/wp-admin/ms-edit.php        2010-03-22 06:02:04 UTC (rev 13796)
</span><span class="lines">@@ -108,16 +108,16 @@
</span><span class="cx">                 }
</span><span class="cx">                 update_site_option( &quot;dashboard_blog&quot;, $dashboard_blog_id );
</span><span class="cx">                 // global terms
</span><del>-                if ( !global_terms_enabled() &amp;&amp; '1' == $_POST[ 'global_terms_enabled' ] ) {
</del><ins>+                if ( !global_terms_enabled() &amp;&amp; ! empty( $_POST[ 'global_terms_enabled' ] ) ) {
</ins><span class="cx">                         require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
</span><span class="cx">                         // create global terms table
</span><span class="cx">                         install_global_terms();
</span><span class="cx">                 }
</span><span class="cx">                 $options = array( 'registrationnotification', 'registration', 'add_new_users', 'menu_items', 'mu_media_buttons', 'upload_space_check_disabled', 'blog_upload_space', 'upload_filetypes', 'site_name', 'first_post', 'first_page', 'first_comment', 'first_comment_url', 'first_comment_author', 'welcome_email', 'welcome_user_email', 'fileupload_maxk', 'admin_notice_feed', 'global_terms_enabled' );
</span><del>-                $checked_options = array('mu_media_buttons', 'menu_items');
-                foreach ( $checked_options as $option_name ) {
</del><ins>+                $checked_options = array('mu_media_buttons' =&gt; array(), 'menu_items' =&gt; array(), 'registrationnotification' =&gt; 'no', 'upload_space_check_disabled' =&gt; 1 );
+                foreach ( $checked_options as $option_name =&gt; $option_unchecked_value ) {
</ins><span class="cx">                         if ( ! isset($_POST[ $option_name ]) )
</span><del>-                                $_POST[ $option_name ] = array();
</del><ins>+                                $_POST[ $option_name ] = $option_unchecked_value;
</ins><span class="cx">                 }
</span><span class="cx">                 foreach ( $options as $option_name ) {
</span><span class="cx">                         if ( ! isset($_POST[ $option_name ]) )
</span></span></pre></div>
<a id="trunkwpadminmsoptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-options.php (13795 => 13796)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-options.php        2010-03-22 04:19:10 UTC (rev 13795)
+++ trunk/wp-admin/ms-options.php        2010-03-22 06:02:04 UTC (rev 13796)
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx">                 &lt;h3&gt;&lt;?php _e('Operational Settings'); ?&gt;&lt;/h3&gt;
</span><span class="cx">                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Network Name') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;site_name&quot;&gt;&lt;?php _e('Network Name') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;input name=&quot;site_name&quot; type=&quot;text&quot; id=&quot;site_name&quot; class=&quot;regular-text&quot; value=&quot;&lt;?php echo esc_attr($current_site-&gt;site_name) ?&gt;&quot; /&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -36,26 +36,25 @@
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Network Admin Email') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;admin_email&quot;&gt;&lt;?php _e('Network Admin Email') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;input name=&quot;admin_email&quot; type=&quot;text&quot; id=&quot;admin_email&quot; class=&quot;regular-text&quot; value=&quot;&lt;?php echo esc_attr( get_site_option('admin_email') ) ?&gt;&quot; /&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><del>-                                        &lt;?php printf( __( 'Registration and support emails will come from this address. An address such as &quot;support@%s&quot; is recommended.' ), $current_site-&gt;domain ); ?&gt;
</del><ins>+                                        &lt;?php printf( __( 'Registration and support emails will come from this address. An address such as &lt;code&gt;support@%s&lt;/code&gt; is recommended.' ), $current_site-&gt;domain ); ?&gt;
</ins><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Global Terms') ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;td&gt;
</span><del>-                                &lt;label&gt;&lt;input type='radio' id=&quot;global_terms_enabled&quot; name=&quot;global_terms_enabled&quot; value='1'&lt;?php checked( get_site_option( 'global_terms_enabled' ), 1 ) ?&gt;/&gt; &lt;?php _e( 'Enabled' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
-                                &lt;label&gt;&lt;input type='radio' id=&quot;global_terms_enabled&quot; name=&quot;global_terms_enabled&quot; value='0'&lt;?php checked( get_site_option( 'global_terms_enabled' ), 0 ) ?&gt;/&gt; &lt;?php _e( 'Disabled' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
-                                &lt;?php _e( 'Maintain a global list of terms from all sites across the network.' ); ?&gt;&lt;/td&gt;
</del><ins>+                                &lt;label&gt;&lt;input type='radio' id=&quot;global_terms_enabled&quot; name=&quot;global_terms_enabled&quot; value='1'&lt;?php checked( get_site_option( 'global_terms_enabled' ), 1 ) ?&gt;/&gt; &lt;?php _e( 'Maintain a global list of terms from all sites across the network.' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
+                                &lt;label&gt;&lt;input type='radio' id=&quot;global_terms_enabled&quot; name=&quot;global_terms_enabled&quot; value='0'&lt;?php checked( get_site_option( 'global_terms_enabled' ), 0 ) ?&gt;/&gt; &lt;?php _e( 'Disabled' ); ?&gt;&lt;/label&gt;&lt;/td&gt;
</ins><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                 &lt;/table&gt;
</span><span class="cx">                 &lt;h3&gt;&lt;?php _e('Dashboard Settings'); ?&gt;&lt;/h3&gt;
</span><span class="cx">                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Dashboard Site') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;dashboard_blog&quot;&gt;&lt;?php _e('Dashboard Site') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;?php
</span><span class="cx">                                         if ( $dashboard_blog = get_site_option( 'dashboard_blog' ) ) {
</span><span class="lines">@@ -71,9 +70,9 @@
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Dashboard User Default Role') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;default_user_role&quot;&gt;&lt;?php _e('Dashboard User Default Role') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><del>-                                        &lt;select name=&quot;default_user_role&quot; id=&quot;role&quot;&gt;&lt;?php
</del><ins>+                                        &lt;select name=&quot;default_user_role&quot; id=&quot;default_user_role&quot;&gt;&lt;?php
</ins><span class="cx">                                         wp_dropdown_roles( get_site_option( 'default_user_role', 'subscriber' ) );
</span><span class="cx">                                         ?&gt;
</span><span class="cx">                                         &lt;/select&gt;
</span><span class="lines">@@ -82,7 +81,7 @@
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Admin Notice Feed') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;admin_notice_feed&quot;&gt;&lt;?php _e('Admin Notice Feed') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;&lt;input name=&quot;admin_notice_feed&quot; class=&quot;large-text&quot; type=&quot;text&quot; id=&quot;admin_notice_feed&quot; value=&quot;&lt;?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?&gt;&quot; size=&quot;80&quot; /&gt;&lt;br /&gt;
</span><span class="cx">                                 &lt;?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?&gt;&lt;br /&gt;
</span><span class="cx">                                 &lt;?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site-&gt;domain . $current_site-&gt;path . 'feed/' )
</span><span class="lines">@@ -116,24 +115,19 @@
</span><span class="cx">                                         update_site_option( 'registrationnotification', 'yes' );
</span><span class="cx">                                 ?&gt;
</span><span class="cx">                                 &lt;td&gt;
</span><del>-                                        &lt;input name=&quot;registrationnotification&quot; type=&quot;radio&quot; id=&quot;registrationnotification1&quot; value='yes'&lt;?php checked( get_site_option('registrationnotification'), 'yes') ?&gt; /&gt; &lt;?php _e('Yes'); ?&gt;&lt;br /&gt;
-                                        &lt;input name=&quot;registrationnotification&quot; type=&quot;radio&quot; id=&quot;registrationnotification2&quot; value='no'&lt;?php checked( get_site_option('registrationnotification'), 'no') ?&gt; /&gt; &lt;?php _e('No'); ?&gt;&lt;br /&gt;
-                                        &lt;?php _e('Send the network admin an email notification every time someone registers a site or user account.') ?&gt;
</del><ins>+                                        &lt;label&gt;&lt;input name=&quot;registrationnotification&quot; type=&quot;checkbox&quot; id=&quot;registrationnotification&quot; value='yes'&lt;?php checked( get_site_option('registrationnotification'), 'yes' ) ?&gt; /&gt; &lt;?php _e('Send the network admin an email notification every time someone registers a site or user account.') ?&gt;&lt;/label&gt;
</ins><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx"> 
</span><del>-                        &lt;tr valign=&quot;top&quot;&gt;
</del><ins>+                        &lt;tr valign=&quot;top&quot; id=&quot;addnewusers&quot;&gt;
</ins><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Add New Users') ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;td&gt;
</span><del>-                                        &lt;a name='addnewusers'&gt;&lt;/a&gt;
-                                        &lt;input name=&quot;add_new_users&quot; type=&quot;radio&quot; id=&quot;add_new_users1&quot; value='1'&lt;?php checked( get_site_option('add_new_users'), 1 ) ?&gt; /&gt; &lt;?php _e('Yes'); ?&gt;&lt;br /&gt;
-                                        &lt;input name=&quot;add_new_users&quot; type=&quot;radio&quot; id=&quot;add_new_users2&quot; value='0'&lt;?php checked( get_site_option('add_new_users'), 0 ) ?&gt; /&gt; &lt;?php _e('No'); ?&gt;&lt;br /&gt;
-                                        &lt;?php _e('Allow site administrators to add new users to their site via the &quot;Users-&gt;Add New&quot; page.') ?&gt;
</del><ins>+                                        &lt;label&gt;&lt;input name=&quot;add_new_users&quot; type=&quot;checkbox&quot; id=&quot;add_new_users&quot; value='1'&lt;?php checked( get_site_option('add_new_users') ) ?&gt; /&gt; &lt;?php _e('Allow site administrators to add new users to their site via the &quot;Users-&gt;Add New&quot; page.'); ?&gt;&lt;/label&gt;
</ins><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Banned Names') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;illegal_names&quot;&gt;&lt;?php _e('Banned Names') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;input name=&quot;illegal_names&quot; type=&quot;text&quot; id=&quot;illegal_names&quot; class=&quot;large-text&quot; value=&quot;&lt;?php echo esc_attr( implode( &quot; &quot;, get_site_option('illegal_names') ) ); ?&gt;&quot; size=&quot;45&quot; /&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -142,7 +136,7 @@
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Limited Email Registrations') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;limited_email_domains&quot;&gt;&lt;?php _e('Limited Email Registrations') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;?php $limited_email_domains = get_site_option('limited_email_domains');
</span><span class="cx">                                         $limited_email_domains = str_replace( ' ', &quot;\n&quot;, $limited_email_domains ); ?&gt;
</span><span class="lines">@@ -153,7 +147,7 @@
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Banned Email Domains') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;banned_email_domains&quot;&gt;&lt;?php _e('Banned Email Domains') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;textarea name=&quot;banned_email_domains&quot; id=&quot;banned_email_domains&quot; cols='45' rows='5'&gt;&lt;?php echo wp_htmledit_pre( get_site_option('banned_email_domains') == '' ? '' : implode( &quot;\n&quot;, (array) get_site_option('banned_email_domains') ) ); ?&gt;&lt;/textarea&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -166,7 +160,7 @@
</span><span class="cx">                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Welcome Email') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;welcome_email&quot;&gt;&lt;?php _e('Welcome Email') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;textarea name=&quot;welcome_email&quot; id=&quot;welcome_email&quot; rows='5' cols='45' class=&quot;large-text&quot;&gt;&lt;?php echo stripslashes( get_site_option('welcome_email') ) ?&gt;&lt;/textarea&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -174,7 +168,7 @@
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Welcome User Email') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;welcome_user_email&quot;&gt;&lt;?php _e('Welcome User Email') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                             &lt;textarea name=&quot;welcome_user_email&quot; id=&quot;welcome_user_email&quot; rows='5' cols='45' class=&quot;large-text&quot;&gt;&lt;?php echo stripslashes( get_site_option('welcome_user_email') ) ?&gt;&lt;/textarea&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -182,7 +176,7 @@
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('First Post') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;first_post&quot;&gt;&lt;?php _e('First Post') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;textarea name=&quot;first_post&quot; id=&quot;first_post&quot; rows='5' cols='45' class=&quot;large-text&quot;&gt;&lt;?php echo stripslashes( get_site_option('first_post') ) ?&gt;&lt;/textarea&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -190,7 +184,7 @@
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('First Page') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;first_page&quot;&gt;&lt;?php _e('First Page') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;textarea name=&quot;first_page&quot; id=&quot;first_page&quot; rows='5' cols='45' class=&quot;large-text&quot;&gt;&lt;?php echo stripslashes( get_site_option('first_page') ) ?&gt;&lt;/textarea&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -198,7 +192,7 @@
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('First Comment') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;first_comment&quot;&gt;&lt;?php _e('First Comment') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;textarea name=&quot;first_comment&quot; id=&quot;first_comment&quot; rows='5' cols='45' class=&quot;large-text&quot;&gt;&lt;?php echo stripslashes( get_site_option('first_comment') ) ?&gt;&lt;/textarea&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -206,7 +200,7 @@
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('First Comment Author') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;first_comment_author&quot;&gt;&lt;?php _e('First Comment Author') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;input type=&quot;text&quot; size='40' name=&quot;first_comment_author&quot; id=&quot;first_comment_author&quot; value=&quot;&lt;?php echo get_site_option('first_comment_author') ?&gt;&quot; /&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -214,7 +208,7 @@
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('First Comment URL') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;first_comment_url&quot;&gt;&lt;?php _e('First Comment URL') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;
</span><span class="cx">                                         &lt;input type=&quot;text&quot; size='40' name=&quot;first_comment_url&quot; id=&quot;first_comment_url&quot; value=&quot;&lt;?php echo esc_attr(get_site_option('first_comment_url')) ?&gt;&quot; /&gt;
</span><span class="cx">                                         &lt;br /&gt;
</span><span class="lines">@@ -225,7 +219,7 @@
</span><span class="cx">                 &lt;h3&gt;&lt;?php _e('Upload Settings'); ?&gt;&lt;/h3&gt;
</span><span class="cx">                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Upload media button') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Media upload buttons') ?&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?&gt;
</span><span class="cx">                                 &lt;td&gt;&lt;label&gt;&lt;input type='checkbox' id=&quot;mu_media_buttons_image&quot; name=&quot;mu_media_buttons[image]&quot; value='1'&lt;?php checked( !empty($mu_media_buttons[ 'image' ]) ) ?&gt;/&gt; &lt;?php _e( 'Images' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
</span><span class="cx">                                 &lt;label&gt;&lt;input type='checkbox' id=&quot;mu_media_buttons_video&quot; name=&quot;mu_media_buttons[video]&quot; value='1'&lt;?php checked( !empty($mu_media_buttons[ 'video' ]) ) ?&gt;/&gt; &lt;?php _e( 'Videos' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
</span><span class="lines">@@ -236,18 +230,17 @@
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Site upload space') ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;td&gt;
</span><del>-                                &lt;label&gt;&lt;input type='radio' id=&quot;upload_space_check_disabled&quot; name=&quot;upload_space_check_disabled&quot; value='0'&lt;?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?&gt;/&gt; &lt;?php printf( __( 'Limit total size of files uploaded to %s MB' ), '&lt;input name=&quot;blog_upload_space&quot; type=&quot;text&quot; id=&quot;blog_upload_space&quot; value=&quot;' . esc_attr( get_site_option('blog_upload_space', 10) ) . '&quot; size=&quot;3&quot; /&gt;' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
-                                &lt;label&gt;&lt;input type='radio' id=&quot;upload_space_check_disabled&quot; name=&quot;upload_space_check_disabled&quot; value='1'&lt;?php checked( get_site_option( 'upload_space_check_disabled' ) ) ?&gt;/&gt; &lt;?php _e( 'Disabled' ); ?&gt;&lt;/label&gt;&lt;br /&gt;&lt;/td&gt;
</del><ins>+                                &lt;label&gt;&lt;input type='checkbox' id=&quot;upload_space_check_disabled&quot; name=&quot;upload_space_check_disabled&quot; value='0'&lt;?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?&gt;/&gt; &lt;?php printf( __( 'Limit total size of files uploaded to %s MB' ), '&lt;input name=&quot;blog_upload_space&quot; type=&quot;text&quot; id=&quot;blog_upload_space&quot; value=&quot;' . esc_attr( get_site_option('blog_upload_space', 10) ) . '&quot; size=&quot;3&quot; /&gt;' ); ?&gt;&lt;/label&gt;&lt;br /&gt;
</ins><span class="cx">                         &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Upload file types') ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;upload_filetypes&quot;&gt;&lt;?php _e('Upload file types') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                 &lt;td&gt;&lt;input name=&quot;upload_filetypes&quot; type=&quot;text&quot; id=&quot;upload_filetypes&quot; class=&quot;large-text&quot; value=&quot;&lt;?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?&gt;&quot; size=&quot;45&quot; /&gt;&lt;/td&gt;
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e('Max upload file size') ?&gt;&lt;/th&gt;
-                                &lt;td&gt;&lt;input name=&quot;fileupload_maxk&quot; type=&quot;text&quot; id=&quot;fileupload_maxk&quot; value=&quot;&lt;?php echo esc_attr( get_site_option('fileupload_maxk', 300) ) ?&gt;&quot; size=&quot;5&quot; /&gt; KB&lt;/td&gt;
</del><ins>+                                &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;fileupload_maxk&quot;&gt;&lt;?php _e('Max upload file size') ?&gt;&lt;/label&gt;&lt;/th&gt;
+                                &lt;td&gt;&lt;?php printf( _x( '%s KB', 'File size in kilobytes' ), '&lt;input name=&quot;fileupload_maxk&quot; type=&quot;text&quot; id=&quot;fileupload_maxk&quot; value=&quot;' . esc_attr( get_site_option('fileupload_maxk', 300 ) ) . '&quot; size=&quot;5&quot; /&gt;' ); ?&gt;&lt;/td&gt;
</ins><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                 &lt;/table&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -262,7 +255,7 @@
</span><span class="cx">                         &lt;?php
</span><span class="cx">                                 ?&gt;
</span><span class="cx">                                 &lt;tr valign=&quot;top&quot;&gt;
</span><del>-                                        &lt;th&gt;&lt;?php _e('Default Language') ?&gt;&lt;/th&gt;
</del><ins>+                                        &lt;th&gt;&lt;label for=&quot;WPLANG&quot;&gt;&lt;?php _e('Default Language') ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                                         &lt;td&gt;
</span><span class="cx">                                                 &lt;select name=&quot;WPLANG&quot; id=&quot;WPLANG&quot;&gt;
</span><span class="cx">                                                         &lt;?php mu_dropdown_languages( $languages, get_site_option('WPLANG') ); ?&gt;
</span></span></pre>
</div>
</div>

</body>
</html>