WordPress.org

Make WordPress Core

Ticket #15765: 15765.2.patch

File 15765.2.patch, 2.7 KB (added by DrewAPicture, 12 months ago)
  • wp-admin/network/site-new.php

     
    123123<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?> 
    124124        <table class="form-table"> 
    125125                <tr class="form-field form-required"> 
    126                         <th scope="row"><?php _e( 'Site Address' ) ?></th> 
     126                        <th scope="row"> 
     127                                <label for="blog[domain]"><?php _e( 'Site Address' ) ?> <span class="description"><?php _e( '(required)' ); ?></span></label> 
     128                        </th> 
    127129                        <td> 
    128130                        <?php if ( is_subdomain_install() ) { ?> 
    129                                 <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> 
     131                                <input name="blog[domain]" type="text" class="regular-text" title="<?php esc_attr_e( 'Domain' ) ?>" required="required" /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span> 
    130132                        <?php } else { 
    131                                 echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php esc_attr_e( 'Domain' ) ?>"/> 
     133                                echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php esc_attr_e( 'Domain' ) ?>" required="required" /> 
    132134                        <?php } 
    133135                        echo '<p>' . __( 'Only lowercase letters (a-z) and numbers are allowed.' ) . '</p>'; 
    134136                        ?> 
    135137                        </td> 
    136138                </tr> 
    137139                <tr class="form-field form-required"> 
    138                         <th scope="row"><?php _e( 'Site Title' ) ?></th> 
    139                         <td><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>"/></td> 
     140                        <th scope="row"> 
     141                                <label for="blog[title]"><?php _e( 'Site Title' ) ?> <span class="description"><?php _e( '(required)' ); ?></span></label> 
     142                        </th> 
     143                        <td><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>" required="required" /></td> 
    140144                </tr> 
    141145                <tr class="form-field form-required"> 
    142                         <th scope="row"><?php _e( 'Admin Email' ) ?></th> 
    143                         <td><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>"/></td> 
     146                        <th scope="row"> 
     147                                <label for="blog[email]"><?php _e( 'Admin Email' ) ?> <span class="description"><?php _e( '(required)' ); ?></span></label> 
     148                        </th> 
     149                        <td><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>" required="required" /></td> 
    144150                </tr> 
    145151                <tr class="form-field"> 
    146152                        <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>