Make WordPress Core


Ignore:
Timestamp:
02/16/2026 05:01:33 PM (8 weeks ago)
Author:
joedolson
Message:

Users: Set username, email, and password fields to ltr.

Usernames, email, and password fields are currently rtl in rtl locales. However, these fields are primarily standardized to ltr character sets and for better experience and readability, should be presented left-to-right in all locales.

Fix username, email, and password fields throughout install and admin to be set to ltr text direction.

Props man4toman, sabernhardt, ierwira, agnieszkaszuba, SergeyBiryukov, joyously, hellofromTonya, shibleemehdi, oglekler, audrasjb, sajjad67, huzaifaalmesbah, joedolson.
Fixes #54915.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-users.php

    r61440 r61651  
    377377        <tr>
    378378            <th scope="row"><label for="user_username"><?php _e( 'Username' ); ?></label></th>
    379             <td><input type="text" class="regular-text" name="user[username]" id="user_username" /></td>
     379            <td><input type="text" class="regular-text ltr" name="user[username]" id="user_username" /></td>
    380380        </tr>
    381381        <tr>
    382382            <th scope="row"><label for="user_email"><?php _e( 'Email' ); ?></label></th>
    383             <td><input type="text" class="regular-text" name="user[email]" id="user_email" /></td>
     383            <td><input type="text" class="regular-text ltr" name="user[email]" id="user_email" /></td>
    384384        </tr>
    385385        <tr>
Note: See TracChangeset for help on using the changeset viewer.