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-settings.php

    r60101 r61651  
    149149                    $class                = 'all-options disabled';
    150150                }
     151            }
     152
     153            $ltr_fields = array(
     154                'siteurl',
     155                'home',
     156                'admin_email',
     157                'new_admin_email',
     158                'mailserver_url',
     159                'mailserver_login',
     160                'mailserver_pass',
     161                'ping_sites',
     162                'permalink_structure',
     163                'category_base',
     164                'tag_base',
     165                'upload_path',
     166                'upload_url_path',
     167            );
     168            if ( in_array( $option->option_name, $ltr_fields, true ) ) {
     169                $class .= ' ltr';
    151170            }
    152171
Note: See TracChangeset for help on using the changeset viewer.