Show the sanitized username on install.php completion page. Also add some help text. see #13159.
git-svn-id: https://develop.svn.wordpress.org/trunk@14264 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8325eb1dc1
commit
da1170a530
|
@ -104,7 +104,9 @@ function display_setup_form( $error = null ) {
|
||||||
if ( $user_table ) {
|
if ( $user_table ) {
|
||||||
_e('User(s) already exists.');
|
_e('User(s) already exists.');
|
||||||
} else {
|
} else {
|
||||||
?><input name="user_name" type="text" id="user_login" size="25" value="<?php echo esc_attr( $user_name ); ?>" /><?php
|
?><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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -218,7 +220,7 @@ switch($step) {
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php _e( 'Username' ); ?></th>
|
<th><?php _e( 'Username' ); ?></th>
|
||||||
<td><code><?php echo esc_html($user_name); ?></code></td>
|
<td><code><?php echo esc_html( sanitize_user( $user_name, true ) ); ?></code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php _e( 'Password' ); ?></th>
|
<th><?php _e( 'Password' ); ?></th>
|
||||||
|
|
Loading…
Reference in New Issue