Ticket #16413: 16143-network.diff

File 16143-network.diff, 36.2 KB (added by andrewryno, 17 months ago)
Line 
1Index: wp-admin/network.php
2===================================================================
3--- wp-admin/network.php        (revision 19602)
4+++ wp-admin/network.php        (working copy)
5@@ -221,16 +221,16 @@
6                <p><?php _e( 'Please choose whether you would like sites in your WordPress network to use sub-domains or sub-directories. <strong>You cannot change this later.</strong>' ); ?></p>
7                <p><?php _e( 'You will need a wildcard DNS record if you are going to use the virtual host (sub-domain) functionality.' ); ?></p>
8                <?php // @todo: Link to an MS readme? ?>
9-               <table class="form-table">
10-                       <tr>
11-                               <th><label><input type='radio' name='subdomain_install' value='1'<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></th>
12-                               <td><?php printf( _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), $hostname ); ?></td>
13-                       </tr>
14-                       <tr>
15-                               <th><label><input type='radio' name='subdomain_install' value='0'<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></th>
16-                               <td><?php printf( _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), $hostname ); ?></td>
17-                       </tr>
18-               </table>
19+               <div class="form-fields">
20+                       <div class="field-row">
21+                               <div class="field-label"><label><input type='radio' name='subdomain_install' value='1'<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></div>
22+                               <div clsas="field-input"><?php printf( _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), $hostname ); ?></div>
23+                       </div>
24+                       <div class="field-row">
25+                               <div class="field-label"><label><input type='radio' name='subdomain_install' value='0'<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></div>
26+                               <div class="field-input"><?php printf( _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), $hostname ); ?></div>
27+                       </div>
28+               </div>
29 
30 <?php
31        endif;
32@@ -240,69 +240,69 @@
33                ?>
34                <h3><?php esc_html_e( 'Server Address' ); ?></h3>
35                <p><?php printf( __( 'We recommend you change your siteurl to <code>%1$s</code> before enabling the network feature. It will still be possible to visit your site using the <code>www</code> prefix with an address like <code>%2$s</code> but any links will not have the <code>www</code> prefix.' ), substr( $hostname, 4 ), $hostname ); ?></p>
36-               <table class="form-table">
37-                       <tr>
38-                               <th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>
39-                               <td>
40+               <div class="form-fields">
41+                       <div class="field-row">
42+                               <div class="field-label"><?php esc_html_e( 'Server Address' ); ?></div>
43+                               <div class="field-row">
44                                        <?php printf( __( 'The internet address of your network will be <code>%s</code>.' ), $hostname ); ?>
45-                               </td>
46-                       </tr>
47-               </table>
48+                               </div>
49+                       </div>
50+               </div>
51                <?php endif; ?>
52 
53                <h3><?php esc_html_e( 'Network Details' ); ?></h3>
54-               <table class="form-table">
55+               <div class="form-fields">
56                <?php if ( 'localhost' == $hostname ) : ?>
57-                       <tr>
58-                               <th scope="row"><?php esc_html_e( 'Sub-directory Install' ); ?></th>
59-                               <td><?php
60+                       <div class="field-row">
61+                               <div class="field-label"><?php esc_html_e( 'Sub-directory Install' ); ?></div>
62+                               <div class="field-input"><?php
63                                        _e( 'Because you are using <code>localhost</code>, the sites in your WordPress network must use sub-directories. Consider using <code>localhost.localdomain</code> if you wish to use sub-domains.' );
64                                        // Uh oh:
65                                        if ( !allow_subdirectory_install() )
66                                                echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
67-                               ?></td>
68-                       </tr>
69+                               ?></div>
70+                       </div>
71                <?php elseif ( !allow_subdomain_install() ) : ?>
72-                       <tr>
73-                               <th scope="row"><?php esc_html_e( 'Sub-directory Install' ); ?></th>
74-                               <td><?php
75+                       <div class="field-row">
76+                               <div class="field-label"><?php esc_html_e( 'Sub-directory Install' ); ?></div>
77+                               <div class="field-input"><?php
78                                        _e( 'Because your install is in a directory, the sites in your WordPress network must use sub-directories.' );
79                                        // Uh oh:
80                                        if ( !allow_subdirectory_install() )
81                                                echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
82-                               ?></td>
83-                       </tr>
84+                               ?></div>
85+                       </div>
86                <?php elseif ( !allow_subdirectory_install() ) : ?>
87-                       <tr>
88-                               <th scope="row"><?php esc_html_e( 'Sub-domain Install' ); ?></th>
89-                               <td><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' );
90+                       <div class="field-row">
91+                               <div class="field-label"><?php esc_html_e( 'Sub-domain Install' ); ?></div>
92+                               <div class="field-input"><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' );
93                                        echo ' <strong>' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
94-                               ?></td>
95-                       </tr>
96+                               ?></div>
97+                       </div>
98                <?php endif; ?>
99                <?php if ( ! $is_www ) : ?>
100-                       <tr>
101-                               <th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>
102-                               <td>
103+                       <div class="field-row">
104+                               <div class="field-label"><?php esc_html_e( 'Server Address' ); ?></div>
105+                               <div class="field-input">
106                                        <?php printf( __( 'The internet address of your network will be <code>%s</code>.' ), $hostname ); ?>
107-                               </td>
108-                       </tr>
109+                               </div>
110+                       </div>
111                <?php endif; ?>
112-                       <tr>
113-                               <th scope='row'><?php esc_html_e( 'Network Title' ); ?></th>
114-                               <td>
115+                       <div class="field-row">
116+                               <div class="field-label"><?php esc_html_e( 'Network Title' ); ?></div>
117+                               <div class="field-input">
118                                        <input name='sitename' type='text' size='45' value='<?php echo esc_attr( $site_name ); ?>' />
119                                        <br /><?php _e( 'What would you like to call your network?' ); ?>
120                                </td>
121                        </tr>
122-                       <tr>
123-                               <th scope='row'><?php esc_html_e( 'Admin E-mail Address' ); ?></th>
124-                               <td>
125+                       <div class="field-row">
126+                               <div class="field-label"><?php esc_html_e( 'Admin E-mail Address' ); ?></div>
127+                               <div class="field-input">
128                                        <input name='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' />
129                                        <br /><?php _e( 'Your email address.' ); ?>
130-                               </td>
131-                       </tr>
132-               </table>
133+                               </div>
134+                       </div>
135+               </div>
136                <?php submit_button( __( 'Install' ), 'primary', 'submit' ); ?>
137        </form>
138        <?php
139Index: wp-admin/network/site-new.php
140===================================================================
141--- wp-admin/network/site-new.php       (revision 19602)
142+++ wp-admin/network/site-new.php       (working copy)
143@@ -118,10 +118,10 @@
144 } ?>
145 <form method="post" action="<?php echo network_admin_url('site-new.php?action=add-site'); ?>">
146 <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
147-       <table class="form-table">
148-               <tr class="form-field form-required">
149-                       <th scope="row"><?php _e( 'Site Address' ) ?></th>
150-                       <td>
151+       <div class="form-fields">
152+               <div class="field-row form-required">
153+                       <div class="field-label"><?php _e( 'Site Address' ) ?></div>
154+                       <div class="field-input">
155                        <?php if ( is_subdomain_install() ) { ?>
156                                <input name="blog[domain]" type="text" class="regular-text" title="<?php esc_attr_e( 'Domain' ) ?>"/>.<?php echo preg_replace( '|^www\.|', '', $current_site->domain );?>
157                        <?php } else {
158@@ -129,20 +129,20 @@
159                        <?php }
160                        echo '<p>' . __( 'Only the characters a-z and 0-9 recommended.' ) . '</p>';
161                        ?>
162-                       </td>
163-               </tr>
164-               <tr class="form-field form-required">
165-                       <th scope="row"><?php _e( 'Site Title' ) ?></th>
166-                       <td><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>"/></td>
167-               </tr>
168-               <tr class="form-field form-required">
169-                       <th scope="row"><?php _e( 'Admin Email' ) ?></th>
170-                       <td><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>"/></td>
171-               </tr>
172-               <tr class="form-field">
173-                       <td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>
174-               </tr>
175-       </table>
176+                       </div>
177+               </div>
178+               <div class="field-row form-required">
179+                       <div class="field-label"><?php _e( 'Site Title' ) ?></div>
180+                       <div class="field-input"><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>"/></div>
181+               </div>
182+               <div class="field-row form-required">
183+                       <div class="field-label"><?php _e( 'Admin Email' ) ?></div>
184+                       <div class="field-input"div class="field-input"><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>"/></div>
185+               </div>
186+               <div class="field-row">
187+                       <div class="field-label label-full"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></div>
188+               </div>
189+       </div>
190        <?php submit_button( __('Add Site'), 'primary', 'add-site' ); ?>
191        </form>
192 </div>
193Index: wp-admin/network/site-info.php
194===================================================================
195--- wp-admin/network/site-info.php      (revision 19602)
196+++ wp-admin/network/site-info.php      (working copy)
197@@ -120,34 +120,34 @@
198 <form method="post" action="site-info.php?action=update-site">
199        <?php wp_nonce_field( 'edit-site' ); ?>
200        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
201-       <table class="form-table">
202-               <tr class="form-field form-required">
203-                       <th scope="row"><?php _e( 'Domain' ) ?></th>
204+       <div class="form-fields">
205+               <div class="field-row form-required">
206+                       <div class="field-label"><?php _e( 'Domain' ) ?></div>
207                        <?php
208                        $protocol = is_ssl() ? 'https://' : 'http://';
209                        if ( $is_main_site ) { ?>
210-                       <td><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></td>
211+                       <div class="form-input"><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></div>
212                        <?php } else { ?>
213-                       <td><?php echo $protocol; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></td>
214+                       <div class="form-input"><?php echo $protocol; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></div>
215                        <?php } ?>
216-               </tr>
217-               <tr class="form-field form-required">
218-                       <th scope="row"><?php _e( 'Path' ) ?></th>
219+               </div>
220+               <div class="field-row form-required">
221+                       <div class="field-label"><?php _e( 'Path' ) ?></div>
222                        <?php if ( $is_main_site ) { ?>
223-                       <td><code><?php echo esc_attr( $details->path ) ?></code></td>
224+                       <div class="form-input"><code><?php echo esc_attr( $details->path ) ?></code></div>
225                        <?php } else { ?>
226-                       <td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" size="40" style='margin-bottom:5px;' />
227-                       <br /><input type="checkbox" style="width:20px;" name="update_home_url" value="update" <?php if ( get_blog_option( $id, 'siteurl' ) == untrailingslashit( get_blogaddress_by_id ($id ) ) || get_blog_option( $id, 'home' ) == untrailingslashit( get_blogaddress_by_id( $id ) ) ) echo 'checked="checked"'; ?> /> <?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></td>
228+                       <div class="form-input"><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" size="40" style='margin-bottom:5px;' />
229+                       <br /><input type="checkbox" style="width:20px;" name="update_home_url" value="update" <?php if ( get_blog_option( $id, 'siteurl' ) == untrailingslashit( get_blogaddress_by_id ($id ) ) || get_blog_option( $id, 'home' ) == untrailingslashit( get_blogaddress_by_id( $id ) ) ) echo 'checked="checked"'; ?> /> <?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></div>
230                        <?php } ?>
231-               </tr>
232-               <tr class="form-field">
233-                       <th scope="row"><?php _ex( 'Registered', 'site' ) ?></th>
234-                       <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></td>
235-               </tr>
236-               <tr class="form-field">
237-                       <th scope="row"><?php _e( 'Last Updated' ); ?></th>
238-                       <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></td>
239-               </tr>
240+               </div>
241+               <div class="form-row">
242+                       <div class="field-label"><?php _ex( 'Registered', 'site' ) ?></div>
243+                       <div class="form-input"><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></div>
244+               </div>
245+               <div class="form-row">
246+                       <div class="field-label"><?php _e( 'Last Updated' ); ?></div>
247+                       <div class="form-input"><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></div>
248+               </div>
249                <?php
250                $attribute_fields = array( 'public' => __( 'Public' ) );
251                if ( ! $is_main_site ) {
252@@ -157,16 +157,16 @@
253                }
254                $attribute_fields['mature'] = __( 'Mature' );
255                ?>
256-               <tr>
257-                       <th scope="row"><?php _e( 'Attributes' ); ?></th>
258-                       <td>
259+               <div class="form-row">
260+                       <div class="field-label"><?php _e( 'Attributes' ); ?></div>
261+                       <div class="form-input">
262                        <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
263                                <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) ); ?> />
264                                <?php echo $field_label; ?></label><br/>
265                        <?php endforeach; ?>
266-                       </td>
267-               </tr>
268-       </table>
269+                       </div>
270+               </div>
271+       </div>
272        <?php submit_button(); ?>
273 </form>
274 
275Index: wp-admin/network/settings.php
276===================================================================
277--- wp-admin/network/settings.php       (revision 19602)
278+++ wp-admin/network/settings.php       (working copy)
279@@ -119,35 +119,35 @@
280        <form method="post" action="settings.php">
281                <?php wp_nonce_field( 'siteoptions' ); ?>
282                <h3><?php _e( 'Operational Settings' ); ?></h3>
283-               <table class="form-table">
284-                       <tr valign="top">
285-                               <th scope="row"><label for="site_name"><?php _e( 'Network Name' ) ?></label></th>
286-                               <td>
287+               <div class="form-fields">
288+                       <div class="field-row">
289+                               <div class="field-label"><label for="site_name"><?php _e( 'Network Name' ) ?></label></div>
290+                               <div class="field-input">
291                                        <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( $current_site->site_name ) ?>" />
292                                        <br />
293                                        <?php _e( 'What you would like to call this website.' ) ?>
294-                               </td>
295-                       </tr>
296+                               </div>
297+                       </div>
298 
299-                       <tr valign="top">
300-                               <th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th>
301-                               <td>
302+                       <div class="field-row">
303+                               <div class="field-label"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></div>
304+                               <div class="field-input">
305                                        <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" />
306                                        <br />
307                                        <?php printf( __( 'Registration and support emails will come from this address. An address such as <code>support@%s</code> is recommended.' ), $current_site->domain ); ?>
308-                               </td>
309-                       </tr>
310-               </table>
311+                               </div>
312+                       </div>
313+               </div>
314                <h3><?php _e( 'Registration Settings' ); ?></h3>
315-               <table class="form-table">
316-                       <tr valign="top">
317-                               <th scope="row"><?php _e( 'Allow new registrations' ) ?></th>
318+               <div class="form-fields">
319+                       <div class="field-row">
320+                               <div class="field-label"><?php _e( 'Allow new registrations' ) ?></div>
321                                <?php
322                                if ( !get_site_option( 'registration' ) )
323                                        update_site_option( 'registration', 'none' );
324                                $reg = get_site_option( 'registration' );
325                                ?>
326-                               <td>
327+                               <div class="field-input">
328                                        <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none') ?> /> <?php _e( 'Registration is disabled.' ); ?></label><br />
329                                        <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user') ?> /> <?php _e( 'User accounts may be registered.' ); ?></label><br />
330                                        <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog') ?> /> <?php _e( 'Logged in users may register new sites.' ); ?></label><br />
331@@ -155,143 +155,143 @@
332                                        <?php if ( is_subdomain_install() )
333                                                _e( 'If registration is disabled, please set <code>NOBLOGREDIRECT</code> in <code>wp-config.php</code> to a URL you will redirect visitors to if they visit a non-existent site.' );
334                                        ?>
335-                               </td>
336-                       </tr>
337+                               </div>
338+                       </div>
339 
340-                       <tr valign="top">
341-                               <th scope="row"><?php _e( 'Registration notification' ) ?></th>
342+                       <div class="field-row">
343+                               <div class="field-label"><?php _e( 'Registration notification' ) ?></div>
344                                <?php
345                                if ( !get_site_option( 'registrationnotification' ) )
346                                        update_site_option( 'registrationnotification', 'yes' );
347                                ?>
348-                               <td>
349+                               <div class="field-input">
350                                        <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account.' ) ?></label>
351-                               </td>
352-                       </tr>
353+                               </div>
354+                       </div>
355 
356-                       <tr valign="top" id="addnewusers">
357-                               <th scope="row"><?php _e( 'Add New Users' ) ?></th>
358-                               <td>
359+                       <div class="field-row" id="addnewusers">
360+                               <div class="field-label"><?php _e( 'Add New Users' ) ?></div>
361+                               <div class="field-input">
362                                        <label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ) ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users &rarr; Add New" page.' ); ?></label>
363-                               </td>
364-                       </tr>
365+                               </div>
366+                       </div>
367 
368-                       <tr valign="top">
369-                               <th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></th>
370-                               <td>
371+                       <div class="field-row">
372+                               <div class="field-label"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></div>
373+                               <div class="field-input">
374                                        <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", (array) get_site_option( 'illegal_names' ) ) ); ?>" size="45" />
375                                        <br />
376                                        <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ) ?>
377-                               </td>
378-                       </tr>
379+                               </div>
380+                       </div>
381 
382-                       <tr valign="top">
383-                               <th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></th>
384-                               <td>
385+                       <div class="field-row">
386+                               <div class="field-label"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></div>
387+                               <div class="field-input">
388                                        <?php $limited_email_domains = get_site_option( 'limited_email_domains' );
389                                        $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?>
390                                        <textarea name="limited_email_domains" id="limited_email_domains" cols="45" rows="5">
391 <?php echo esc_textarea( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>
392                                        <br />
393                                        <?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ) ?>
394-                               </td>
395-                       </tr>
396+                               </div>
397+                       </div>
398 
399-                       <tr valign="top">
400-                               <th scope="row"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></th>
401-                               <td>
402+                       <div class="field-row">
403+                               <div class="field-label"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></div>
404+                               <div class="field-input">
405                                        <textarea name="banned_email_domains" id="banned_email_domains" cols="45" rows="5">
406 <?php echo esc_textarea( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea>
407                                        <br />
408                                        <?php _e( 'If you want to ban domains from site registrations. One domain per line.' ) ?>
409-                               </td>
410-                       </tr>
411+                               </div>
412+                       </div>
413 
414-               </table>
415+               </div>
416                <h3><?php _e('New Site Settings'); ?></h3>
417-               <table class="form-table">
418+               <div class="form-fields">
419 
420-                       <tr valign="top">
421-                               <th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th>
422-                               <td>
423+                       <div class="field-row">
424+                               <div class="field-label"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></div>
425+                               <div class="field-input">
426                                        <textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text">
427 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_email' ) ) ) ?></textarea>
428                                        <br />
429                                        <?php _e( 'The welcome email sent to new site owners.' ) ?>
430-                               </td>
431-                       </tr>
432-                       <tr valign="top">
433-                               <th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th>
434-                               <td>
435+                               </div>
436+                       </div>
437+                       <div class="field-row">
438+                               <div class="field-label"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></div>
439+                               <div class="field-input">
440                                        <textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text">
441 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_user_email' ) ) ) ?></textarea>
442                                        <br />
443                                        <?php _e( 'The welcome email sent to new users.' ) ?>
444-                               </td>
445-                       </tr>
446-                       <tr valign="top">
447-                               <th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th>
448-                               <td>
449+                               </div>
450+                       </div>
451+                       <div class="field-row">
452+                               <div class="field-label"><label for="first_post"><?php _e( 'First Post' ) ?></label></div>
453+                               <div class="field-input">
454                                        <textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text">
455 <?php echo esc_textarea( stripslashes( get_site_option( 'first_post' ) ) ) ?></textarea>
456                                        <br />
457                                        <?php _e( 'The first post on a new site.' ) ?>
458-                               </td>
459-                       </tr>
460-                       <tr valign="top">
461-                               <th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th>
462-                               <td>
463+                               </div>
464+                       </div>
465+                       <div class="field-row">
466+                               <div class="field-label"><label for="first_page"><?php _e( 'First Page' ) ?></label></div>
467+                               <div class="field-input">
468                                        <textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text">
469 <?php echo esc_textarea( stripslashes( get_site_option('first_page') ) ) ?></textarea>
470                                        <br />
471                                        <?php _e( 'The first page on a new site.' ) ?>
472-                               </td>
473-                       </tr>
474-                       <tr valign="top">
475-                               <th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th>
476-                               <td>
477+                               </div>
478+                       </div>
479+                       <div class="field-row">
480+                               <div class="field-label"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></div>
481+                               <div class="field-input">
482                                        <textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text">
483 <?php echo esc_textarea( stripslashes( get_site_option('first_comment') ) ) ?></textarea>
484                                        <br />
485                                        <?php _e( 'The first comment on a new site.' ) ?>
486-                               </td>
487-                       </tr>
488-                       <tr valign="top">
489-                               <th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></th>
490-                               <td>
491+                               </div>
492+                       </div>
493+                       <div class="field-row">
494+                               <div class="field-label"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></div>
495+                               <div class="field-input">
496                                        <input type="text" size="40" name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" />
497                                        <br />
498                                        <?php _e( 'The author of the first comment on a new site.' ) ?>
499-                               </td>
500-                       </tr>
501-                       <tr valign="top">
502-                               <th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></th>
503-                               <td>
504+                               </div>
505+                       </div>
506+                       <div class="field-row">
507+                               <div class="field-label"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></div>
508+                               <div class="field-input">
509                                        <input type="text" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" />
510                                        <br />
511                                        <?php _e( 'The URL for the first comment on a new site.' ) ?>
512-                               </td>
513-                       </tr>
514-               </table>
515+                               </div>
516+                       </div>
517+               </div>
518                <h3><?php _e( 'Upload Settings' ); ?></h3>
519-               <table class="form-table">
520-                       <tr valign="top">
521-                               <th scope="row"><?php _e( 'Site upload space' ) ?></th>
522-                               <td>
523+               <div class="form-fields">
524+                       <div class="field-row">
525+                               <div class="field-label"><?php _e( 'Site upload space' ) ?></div>
526+                               <div class="field-input">
527                                <label><input type="checkbox" id="upload_space_check_disabled" name="upload_space_check_disabled" value="0"<?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '</label><label><input name="blog_upload_space" type="text" id="blog_upload_space" value="' . esc_attr( get_site_option('blog_upload_space', 10) ) . '" size="3" />' ); ?></label><br />
528-                               </td>
529-                       </tr>
530+                               </div>
531+                       </div>
532 
533-                       <tr valign="top">
534-                               <th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></th>
535-                               <td><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></td>
536-                       </tr>
537+                       <div class="field-row">
538+                               <div class="field-label"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></div>
539+                               <div class="field-input"><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></div>
540+                       </div>
541 
542-                       <tr valign="top">
543-                               <th scope="row"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></th>
544-                               <td><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></td>
545-                       </tr>
546-               </table>
547+                       <div class="field-row">
548+                               <div class="field-label"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></div>
549+                               <div class="field-input"><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></div>
550+                       </div>
551+               </div>
552 
553 <?php
554                $languages = get_available_languages();
555@@ -299,25 +299,25 @@
556                        $lang = get_site_option( 'WPLANG' );
557 ?>
558                <h3><?php _e( 'Language Settings' ); ?></h3>
559-               <table class="form-table">
560-                               <tr valign="top">
561-                                       <th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th>
562-                                       <td>
563+               <div class="form-fields">
564+                               <div class="field-row">
565+                                       <div class="field-label"><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></div>
566+                                       <div class="field-input">
567                                                <select name="WPLANG" id="WPLANG">
568                                                        <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG' ) ); ?>
569                                                </select>
570-                                       </td>
571-                               </tr>
572-               </table>
573+                                       </div>
574+                               </div>
575+               </div>
576 <?php
577                } // languages
578 ?>
579 
580                <h3><?php _e( 'Menu Settings' ); ?></h3>
581-               <table id="menu" class="form-table">
582-                       <tr valign="top">
583-                               <th scope="row"><?php _e( 'Enable administration menus' ); ?></th>
584-                               <td>
585+               <div id="menu" class="form-fields">
586+                       <div class="field-row">
587+                               <div class="field-label"><?php _e( 'Enable administration menus' ); ?></div>
588+                               <div class="field-input">
589                        <?php
590                        $menu_perms = get_site_option( 'menu_items' );
591                        $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );
592@@ -325,9 +325,9 @@
593                                echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[$key] ) ? checked( $menu_perms[$key], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>";
594                        }
595                        ?>
596-                               </td>
597-                       </tr>
598-               </table>
599+                               </div>
600+                       </div>
601+               </div>
602 
603                <?php do_action( 'wpmu_options' ); // Add more options here ?>
604 
605Index: wp-admin/network/site-settings.php
606===================================================================
607--- wp-admin/network/site-settings.php  (revision 19602)
608+++ wp-admin/network/site-settings.php  (working copy)
609@@ -110,7 +110,7 @@
610 <form method="post" action="site-settings.php?action=update-site">
611        <?php wp_nonce_field( 'edit-site' ); ?>
612        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
613-       <table class="form-table">
614+       <div class="form-fields">
615                <?php
616                $blog_prefix = $wpdb->get_blog_prefix( $id );
617                $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '\_%' AND option_name NOT LIKE '%user_roles'" );
618@@ -130,27 +130,27 @@
619                        }
620                        if ( strpos( $option->option_value, "\n" ) !== false ) {
621                        ?>
622-                               <tr class="form-field">
623-                                       <th scope="row"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></th>
624-                                       <td><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo esc_textarea( $option->option_value ) ?></textarea></td>
625-                               </tr>
626+                               <div class="field-row">
627+                                       <div class="field-label"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></div>
628+                                       <div class="field-input"><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo esc_textarea( $option->option_value ) ?></textarea></div>
629+                               </div>
630                        <?php
631                        } else {
632                        ?>
633-                               <tr class="form-field">
634-                                       <th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>
635+                               <div class="field-row">
636+                                       <div class="field-label"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></div>
637                                        <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?>
638-                                       <td><code><?php echo esc_html( $option->option_value ) ?></code></td>
639+                                       <div class="field-input"><code><?php echo esc_html( $option->option_value ) ?></code></div>
640                                        <?php } else { ?>
641-                                       <td><input class="<?php echo $class; ?>" name="option[<?php echo esc_attr( $option->option_name ) ?>]" type="text" id="<?php echo esc_attr( $option->option_name ) ?>" value="<?php echo esc_attr( $option->option_value ) ?>" size="40" <?php disabled( $disabled ) ?> /></td>
642+                                       <div class="field-input"><input class="<?php echo $class; ?>" name="option[<?php echo esc_attr( $option->option_name ) ?>]" type="text" id="<?php echo esc_attr( $option->option_name ) ?>" value="<?php echo esc_attr( $option->option_value ) ?>" size="40" <?php disabled( $disabled ) ?> /></div>
643                                        <?php } ?>
644-                               </tr>
645+                               </div>
646                        <?php
647                        }
648                } // End foreach
649                do_action( 'wpmueditblogaction', $id );
650                ?>
651-       </table>
652+       </div>
653        <?php submit_button(); ?>
654 </form>
655 
656Index: wp-admin/network/site-users.php
657===================================================================
658--- wp-admin/network/site-users.php     (revision 19602)
659+++ wp-admin/network/site-users.php     (working copy)
660@@ -254,14 +254,14 @@
661 <form action="site-users.php?action=adduser" id="adduser" method="post">
662        <?php wp_nonce_field( 'edit-site' ); ?>
663        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
664-       <table class="form-table">
665-               <tr>
666-                       <th scope="row"><?php _e( 'Username' ); ?></th>
667-                       <td><input type="text" class="regular-text" name="newuser" id="newuser" /></td>
668-               </tr>
669-               <tr>
670-                       <th scope="row"><?php _e( 'Role'); ?></th>
671-                       <td><select name="new_role" id="new_role_0">
672+       <div class="form-table">
673+               <div class="field-row">
674+                       <div class="field-label"><?php _e( 'Username' ); ?></div>
675+                       <div class="field-input"><input type="text" class="regular-text" name="newuser" id="newuser" /></div>
676+               </div>
677+               <div class="field-row">
678+                       <div class="field-label"><?php _e( 'Role'); ?></div>
679+                       <div class="field-input"><select name="new_role" id="new_role_0">
680                        <?php
681                        reset( $editblog_roles );
682                        foreach ( $editblog_roles as $role => $role_assoc ){
683@@ -270,9 +270,9 @@
684                                echo '<option ' . $selected . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>';
685                        }
686                        ?>
687-                       </select></td>
688-               </tr>
689-       </table>
690+                       </select></div>
691+               </div>
692+       </div>
693        <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
694        <?php submit_button( __('Add User'), 'primary', 'add-user', false, array( 'id' => 'submit-add-existing-user' ) ); ?>
695 </form>
696@@ -283,18 +283,18 @@
697 <form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
698        <?php wp_nonce_field( 'edit-site' ); ?>
699        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
700-       <table class="form-table">
701-               <tr>
702-                       <th scope="row"><?php _e( 'Username' ) ?></th>
703-                       <td><input type="text" class="regular-text" name="user[username]" /></td>
704-               </tr>
705-               <tr>
706-                       <th scope="row"><?php _e( 'Email' ) ?></th>
707-                       <td><input type="text" class="regular-text" name="user[email]" /></td>
708-               </tr>
709-               <tr>
710-                       <th scope="row"><?php _e( 'Role'); ?></th>
711-                       <td><select name="new_role" id="new_role_0">
712+       <div class="form-fields">
713+               <div class="field-row">
714+                       <div class="field-label"><?php _e( 'Username' ) ?></div>
715+                       <div class="field-input"><input type="text" class="regular-text" name="user[username]" /></div>
716+               </div>
717+               <div class="field-row">
718+                       <div class="field-label"><?php _e( 'Email' ) ?></div>
719+                       <div class="field-input"><input type="text" class="regular-text" name="user[email]" /></div>
720+               </div>
721+               <div class="field-row">
722+                       <div class="field-label"><?php _e( 'Role'); ?></div>
723+                       <div class="field-input"><select name="new_role" id="new_role_0">
724                        <?php
725                        reset( $editblog_roles );
726                        foreach ( $editblog_roles as $role => $role_assoc ){
727@@ -303,12 +303,12 @@
728                                echo '<option ' . $selected . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>';
729                        }
730                        ?>
731-                       </select></td>
732-               </tr>
733-               <tr class="form-field">
734-                       <td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td>
735-               </tr>
736-       </table>
737+                       </select></div>
738+               </div>
739+               <div class="field-row">
740+                       <div class="field-label label-full"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></div>
741+               </div>
742+       </div>
743        <?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ) ?>
744        <?php submit_button( __('Add New User'), 'primary', 'add-user', false, array( 'id' => 'submit-add-user' ) ); ?>
745 </form>
746Index: wp-admin/network/user-new.php
747===================================================================
748--- wp-admin/network/user-new.php       (revision 19602)
749+++ wp-admin/network/user-new.php       (working copy)
750@@ -87,19 +87,19 @@
751        </div>
752 <?php } ?>
753        <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post">
754-       <table class="form-table">
755-               <tr class="form-field form-required">
756-                       <th scope="row"><?php _e( 'Username' ) ?></th>
757-                       <td><input type="text" class="regular-text" name="user[username]" /></td>
758-               </tr>
759-               <tr class="form-field form-required">
760-                       <th scope="row"><?php _e( 'Email' ) ?></th>
761-                       <td><input type="text" class="regular-text" name="user[email]" /></td>
762-               </tr>
763-               <tr class="form-field">
764-                       <td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td>
765-               </tr>
766-       </table>
767+       <div class="form-fields">
768+               <div class="field-row form-required">
769+                       <div class="field-label"><?php _e( 'Username' ) ?></div>
770+                       <div class="field-input"><input type="text" class="regular-text" name="user[username]" /></div>
771+               </div>
772+               <div class="field-row form-required">
773+                       <div class="field-label"><?php _e( 'Email' ) ?></div>
774+                       <div><input type="text" class="regular-text" name="user[email]" /></div>
775+               </div>
776+               <div class="field-row">
777+                       <div class="field-label label-full"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></div>
778+               </div>
779+       </div>
780        <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
781        <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?>
782        </form>