Ticket #15765: required-fields.diff

File required-fields.diff, 1.6 KB (added by wonderboymusic, 7 months ago)
Line 
1Index: wp-admin/network/site-new.php
2===================================================================
3--- wp-admin/network/site-new.php       (revision 22329)
4+++ wp-admin/network/site-new.php       (working copy)
5@@ -120,7 +120,9 @@
6 <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
7        <table class="form-table">
8                <tr class="form-field form-required">
9-                       <th scope="row"><?php _e( 'Site Address' ) ?></th>
10+                       <th scope="row">
11+                               <label for="blog[domain]"><?php _e( 'Site Address' ) ?> <span class="description"><?php _e('(required)'); ?></span></label>
12+                       </th>
13                        <td>
14                        <?php if ( is_subdomain_install() ) { ?>
15                                <input name="blog[domain]" type="text" class="regular-text" title="<?php esc_attr_e( 'Domain' ) ?>"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>
16@@ -132,11 +134,15 @@
17                        </td>
18                </tr>
19                <tr class="form-field form-required">
20-                       <th scope="row"><?php _e( 'Site Title' ) ?></th>
21+                       <th scope="row">
22+                               <label for="blog[title]"><?php _e( 'Site Title' ) ?> <span class="description"><?php _e('(required)'); ?></span></label>
23+                       </th>
24                        <td><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>"/></td>
25                </tr>
26                <tr class="form-field form-required">
27-                       <th scope="row"><?php _e( 'Admin Email' ) ?></th>
28+                       <th scope="row">
29+                               <label for="blog[email]"><?php _e( 'Admin Email' ) ?> <span class="description"><?php _e('(required)'); ?></span></label>
30+                       </th>
31                        <td><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>"/></td>
32                </tr>
33                <tr class="form-field">