Ticket #37331: 37331-3.diff
File 37331-3.diff, 3.7 KB (added by , 7 years ago) |
---|
-
src/wp-admin/network/site-new.php
212 212 } 213 213 } 214 214 ?> 215 <?php echo sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' ); ?> 215 216 <form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate"> 216 217 <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ); ?> 217 218 <table class="form-table"> 218 219 <tr class="form-field form-required"> 219 <th scope="row"><label for="site-address"><?php _e( 'Site Address (URL)' ); ?> </label></th>220 <th scope="row"><label for="site-address"><?php _e( 'Site Address (URL)' ); ?> <span class="required">*</span></label></th> 220 221 <td> 221 222 <?php if ( is_subdomain_install() ) { ?> 222 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', get_network()->domain ); ?></span>223 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required="required"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', get_network()->domain ); ?></span> 223 224 <?php 224 225 } else { 225 226 echo get_network()->domain . get_network()->path 226 227 ?> 227 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off"/>228 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required="required"/> 228 229 <?php 229 230 } 230 231 echo '<p class="description" id="site-address-desc">' . __( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ) . '</p>'; … … 232 233 </td> 233 234 </tr> 234 235 <tr class="form-field form-required"> 235 <th scope="row"><label for="site-title"><?php _e( 'Site Title' ); ?> </label></th>236 <td><input name="blog[title]" type="text" class="regular-text" id="site-title" /></td>236 <th scope="row"><label for="site-title"><?php _e( 'Site Title' ); ?> <span class="required">*</span></label></th> 237 <td><input name="blog[title]" type="text" class="regular-text" id="site-title" required="required"/></td> 237 238 </tr> 238 239 <?php 239 240 $languages = get_available_languages(); … … 267 268 </tr> 268 269 <?php endif; // Languages. ?> 269 270 <tr class="form-field form-required"> 270 <th scope="row"><label for="admin-email"><?php _e( 'Admin Email' ); ?> </label></th>271 <td><input name="blog[email]" type="email" class="regular-text wp-suggest-user" id="admin-email" data-autocomplete-type="search" data-autocomplete-field="user_email" /></td>271 <th scope="row"><label for="admin-email"><?php _e( 'Admin Email' ); ?> <span class="required">*</span></label></th> 272 <td><input name="blog[email]" type="email" class="regular-text wp-suggest-user" id="admin-email" data-autocomplete-type="search" data-autocomplete-field="user_email" aria-describedby="site-admin-email" required="required"/></td> 272 273 </tr> 273 274 <tr class="form-field"> 274 <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 a link to set the password will be mailed to this email address.' ); ?></td>275 <td colspan="2"><p id="site-admin-email"><?php _e( 'A new user will be created if the above email address is not in the database.' ); ?><br /><?php _e( 'The username and a link to set the password will be mailed to this email address.' ); ?></p></td> 275 276 </tr> 276 277 </table> 277 278