Make WordPress Core

Changeset 14264


Ignore:
Timestamp:
04/28/2010 02:17:19 AM (14 years ago)
Author:
nacin
Message:

Show the sanitized username on install.php completion page. Also add some help text. see #13159.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r14172 r14264  
    105105                _e('User(s) already exists.');
    106106            } else {
    107                 ?><input name="user_name" type="text" id="user_login" size="25" value="<?php echo esc_attr( $user_name ); ?>" /><?php
     107                ?><input name="user_name" type="text" id="user_login" size="25" value="<?php echo esc_attr( sanitize_user( $user_name, true ) ); ?>" />
     108                <p><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods and the @ symbol.' ); ?></p>
     109            <?php
    108110            } ?>
    109111            </td>
     
    219221    <tr>
    220222        <th><?php _e( 'Username' ); ?></th>
    221         <td><code><?php echo esc_html($user_name); ?></code></td>
     223        <td><code><?php echo esc_html( sanitize_user( $user_name, true ) ); ?></code></td>
    222224    </tr>
    223225    <tr>
Note: See TracChangeset for help on using the changeset viewer.