diff --git src/wp-signup.php src/wp-signup.php
index 375dad9..b7f036e 100644
|
|
|
function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { |
| 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" /><br />'; |
| | 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" required="required" /><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" /><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" required="required" /><span class="suffix_address">.' . esc_html( $site_domain ) . '</span><br />'; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | if ( ! is_user_logged_in() ) { |
| … |
… |
function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { |
| 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 ) . '" />'; |
| | 152 | echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr( $blog_title ) . '" required="required" />'; |
| 153 | 153 | ?> |
| 154 | 154 | |
| 155 | 155 | <?php |
| … |
… |
function show_user_form( $user_name = '', $user_email = '', $errors = '' ) { |
| 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" /><br />'; |
| | 263 | echo '<input name="user_name" type="text" id="user_name" value="' . esc_attr( $user_name ) . '" autocapitalize="none" autocorrect="off" maxlength="60" required="required" /><br />'; |
| 264 | 264 | _e( '(Must be at least 4 characters, letters and numbers only.)' ); |
| 265 | 265 | ?> |
| 266 | 266 | |
| … |
… |
function show_user_form( $user_name = '', $user_email = '', $errors = '' ) { |
| 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" /><br /><?php _e( 'We send your registration email 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" required="required" /><br /><?php _e( 'We send your registration email 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 ) { |