Ticket #54344: 54344.1.diff
File 54344.1.diff, 3.0 KB (added by , 3 years ago) |
---|
-
src/wp-signup.php
118 118 } 119 119 120 120 if ( ! is_subdomain_install() ) { 121 echo '<span class="prefix_address" >' . $current_network->domain . $current_network->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr( $blogname ) . '" maxlength="60" autocomplete="off" /><br />';121 echo '<span class="prefix_address" id="prefix-address">' . $current_network->domain . $current_network->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr( $blogname ) . '" maxlength="60" autocomplete="off" required="required" aria-describedby="prefix-address" /><br />'; 122 122 } else { 123 123 $site_domain = preg_replace( '|^www\.|', '', $current_network->domain ); 124 echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr( $blogname ) . '" maxlength="60" autocomplete="off" /><span class="suffix_address">.' . esc_html( $site_domain ) . '</span><br />';124 echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr( $blogname ) . '" maxlength="60" autocomplete="off" required="required" aria-describedby="suffix-address" /><span class="suffix_address" id="suffix-address">.' . esc_html( $site_domain ) . '</span><br />'; 125 125 } 126 126 127 127 if ( ! is_user_logged_in() ) { … … 149 149 <p class="error"><?php echo $errmsg; ?></p> 150 150 <?php 151 151 } 152 echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr( $blog_title ) . '" autocomplete="off" />';152 echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr( $blog_title ) . '" autocomplete="off" required="required" />'; 153 153 ?> 154 154 155 155 <?php … … 260 260 if ( $errmsg ) { 261 261 echo '<p class="error">' . $errmsg . '</p>'; 262 262 } 263 echo '<input name="user_name" type="text" id="user_name" value="' . esc_attr( $user_name ) . '" autocapitalize="none" autocorrect="off" maxlength="60" autocomplete="username" /><br />';263 echo '<input name="user_name" type="text" id="user_name" value="' . esc_attr( $user_name ) . '" autocapitalize="none" autocorrect="off" maxlength="60" autocomplete="username" required="required" /><br />'; 264 264 _e( '(Must be at least 4 characters, letters and numbers only.)' ); 265 265 ?> 266 266 … … 271 271 ?> 272 272 <p class="error"><?php echo $errmsg; ?></p> 273 273 <?php } ?> 274 <input name="user_email" type="email" id="user_email" value="<?php echo esc_attr( $user_email ); ?>" maxlength="200" autocomplete="email" /><br /><?php _e( 'Your registration email is sent to this address. (Double-check your email address before continuing.)' ); ?>274 <input name="user_email" type="email" id="user_email" value="<?php echo esc_attr( $user_email ); ?>" maxlength="200" autocomplete="email" required="required" /><br /><?php _e( 'Your registration email is sent to this address. (Double-check your email address before continuing.)' ); ?> 275 275 <?php 276 276 $errmsg = $errors->get_error_message( 'generic' ); 277 277 if ( $errmsg ) {