- <th scope="row"><label for="weblog_title"><?php _e('Blog Title'); ?></label></th>
- <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo ( isset($_POST['weblog_title']) ? esc_attr($_POST['weblog_title']) : '' ); ?>" /></td>
+ <th scope="row"><label for="weblog_title"><?php _e( 'Site Title' ); ?></label></th>
+ <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></td>
+ </tr>
+ <tr>
+ <th scope="row"><label for="user_login"><?php _e('Username'); ?></label></th>
+ <td>
+ <?php
+ if ( $user_table ) {
+ _e('User(s) already exists.');
+ echo '<input name="user_name" type="hidden" value="admin" />';
+ } else {
+ ?><input name="user_name" type="text" id="user_login" size="25" value="<?php echo esc_attr( sanitize_user( $user_name, true ) ); ?>" />
+ <p><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods, and the @ symbol.' ); ?></p>
+ <?php
+ } ?>
+ </td>
+ </tr>
+ <?php if ( ! $user_table ) : ?>
+ <tr>
+ <th scope="row">
+ <label for="pass1"><?php _e('Password, twice'); ?></label>
+ <p><?php _e('A password will be automatically generated for you if you leave this blank.'); ?></p>
+ </th>
+ <td>
+ <input name="admin_password" type="password" id="pass1" size="25" value="" />
+ <p><input name="admin_password2" type="password" id="pass2" size="25" value="" /></p>
+ <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
+ <p><?php echo wp_get_password_hint(); ?></p>
+ </td>