Ticket #37331: 37331.diff
File 37331.diff, 3.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/network/site-new.php
191 191 foreach ( $messages as $msg ) 192 192 echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; 193 193 } ?> 194 <form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">194 <form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>"> 195 195 <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?> 196 196 <table class="form-table"> 197 197 <tr class="form-field form-required"> 198 <th scope="row"><label for="site-address"><?php _e( 'Site Address (URL)' ) ?>< /label></th>198 <th scope="row"><label for="site-address"><?php _e( 'Site Address (URL)' ) ?><span class="required"><?php _e( '*' ) ?></span></label></th> 199 199 <td> 200 200 <?php if ( is_subdomain_install() ) { ?> 201 <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>201 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" aria-required="true" required="required" /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', get_network()->domain ); ?></span> 202 202 <?php } else { 203 echo get_network()->domain . get_network()->path ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" />203 echo get_network()->domain . get_network()->path ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" aria-required="true" required="required"/> 204 204 <?php } 205 205 echo '<p class="description" id="site-address-desc">' . __( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ) . '</p>'; 206 206 ?> … … 208 208 </tr> 209 209 <tr class="form-field form-required"> 210 210 <th scope="row"><label for="site-title"><?php _e( 'Site Title' ) ?></label></th> 211 <td><input name="blog[title]" type="text" class="regular-text" id="site-title" 211 <td><input name="blog[title]" type="text" class="regular-text" id="site-title"/></td> 212 212 </tr> 213 213 <?php 214 214 $languages = get_available_languages(); … … 240 240 </tr> 241 241 <?php endif; // Languages. ?> 242 242 <tr class="form-field form-required"> 243 <th scope="row"><label for="admin-email"><?php _e( 'Admin Email' ) ?>< /label></th>244 <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>243 <th scope="row"><label for="admin-email"><?php _e( 'Admin Email' ) ?><span class="required"><?php _e( '*' ) ?></span></label></th> 244 <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-required="true" required="required" /></td> 245 245 </tr> 246 246 <tr class="form-field"> 247 247 <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>