Make WordPress Core

Ticket #54915: 54915.diff

File 54915.diff, 9.9 KB (added by sabernhardt, 2 years ago)
  • src/wp-admin/css/forms.css

     
    108108}
    109109
    110110/* rtl:ignore */
     111.ltr,
     112input[type="password"],
    111113input[type="email"],
    112114input[type="url"] {
    113115        direction: ltr;
  • src/wp-admin/install.php

     
    123123                                echo '<input name="user_name" type="hidden" value="admin" />';
    124124                        } else {
    125125                                ?>
    126                                 <input name="user_name" type="text" id="user_login" size="25" value="<?php echo esc_attr( sanitize_user( $user_name, true ) ); ?>" />
     126                                <input name="user_name" type="text" id="user_login" class="ltr" size="25" value="<?php echo esc_attr( sanitize_user( $user_name, true ) ); ?>" />
    127127                                <p><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods, and the @ symbol.' ); ?></p>
    128128                                <?php
    129129                        }
     
    140140                        <td>
    141141                                <div class="wp-pwd">
    142142                                        <?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?>
    143                                         <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
     143                                        <input type="password" name="admin_password" id="pass1" class="regular-text ltr" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
    144144                                        <button type="button" class="button wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    145145                                                <span class="dashicons dashicons-hidden"></span>
    146146                                                <span class="text"><?php _e( 'Hide' ); ?></span>
  • src/wp-admin/user-edit.php

     
    413413<table class="form-table" role="presentation">
    414414        <tr class="user-user-login-wrap">
    415415                <th><label for="user_login"><?php _e( 'Username' ); ?></label></th>
    416                 <td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( $profile_user->user_login ); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e( 'Usernames cannot be changed.' ); ?></span></td>
     416                <td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( $profile_user->user_login ); ?>" disabled="disabled" class="regular-text ltr" /> <span class="description"><?php _e( 'Usernames cannot be changed.' ); ?></span></td>
    417417        </tr>
    418418
    419419                <?php if ( ! IS_PROFILE_PAGE && ! is_network_admin() && current_user_can( 'promote_user', $profile_user->ID ) ) : ?>
     
    640640                <button type="button" class="button wp-generate-pw hide-if-no-js" aria-expanded="false"><?php _e( 'Set New Password' ); ?></button>
    641641                <div class="wp-pwd hide-if-js">
    642642                        <span class="password-input-wrapper">
    643                                 <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
     643                                <input type="password" name="pass1" id="pass1" class="regular-text ltr" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
    644644                        </span>
    645645                        <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    646646                                <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
     
    774774                        <div class="create-application-password form-wrap">
    775775                                <div class="form-field">
    776776                                        <label for="new_application_password_name"><?php _e( 'New Application Password Name' ); ?></label>
    777                                         <input type="text" size="30" id="new_application_password_name" name="new_application_password_name" class="input" aria-required="true" aria-describedby="new_application_password_name_desc" />
     777                                        <input type="text" size="30" id="new_application_password_name" name="new_application_password_name" class="input ltr" aria-required="true" aria-describedby="new_application_password_name_desc" />
    778778                                        <p class="description" id="new_application_password_name_desc"><?php _e( 'Required to create an Application Password, but not to update the user.' ); ?></p>
    779779                                </div>
    780780
  • src/wp-admin/user-new.php

     
    506506<table class="form-table" role="presentation">
    507507        <tr class="form-field form-required">
    508508                <th scope="row"><label for="user_login"><?php _e( 'Username' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
    509                 <td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" /></td>
     509                <td><input name="user_login" type="text" id="user_login" class="ltr" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" /></td>
    510510        </tr>
    511511        <tr class="form-field form-required">
    512512                <th scope="row"><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
     
    565565                        <div class="wp-pwd">
    566566                                <?php $initial_password = wp_generate_password( 24 ); ?>
    567567                                <span class="password-input-wrapper">
    568                                         <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
     568                                        <input type="password" name="pass1" id="pass1" class="regular-text ltr" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
    569569                                </span>
    570570                                <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    571571                                        <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
  • src/wp-login.php

     
    830830                <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
    831831                        <p>
    832832                                <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
    833                                 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" />
     833                                <input type="text" name="user_login" id="user_login" class="input ltr" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" />
    834834                        </p>
    835835                        <?php
    836836
     
    944944                                </p>
    945945
    946946                                <div class="wp-pwd">
    947                                         <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" />
     947                                        <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input ltr" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" />
    948948
    949949                                        <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    950950                                                <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
     
    10631063                <form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
    10641064                        <p>
    10651065                                <label for="user_login"><?php _e( 'Username' ); ?></label>
    1066                                 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" />
     1066                                <input type="text" name="user_login" id="user_login" class="input ltr" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" />
    10671067                        </p>
    10681068                        <p>
    10691069                                <label for="user_email"><?php _e( 'Email' ); ?></label>
     
    13881388                <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    13891389                        <p>
    13901390                                <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
    1391                                 <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" />
     1391                                <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input ltr" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" />
    13921392                        </p>
    13931393
    13941394                        <div class="user-pass-wrap">
    13951395                                <label for="user_pass"><?php _e( 'Password' ); ?></label>
    13961396                                <div class="wp-pwd">
    1397                                         <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" />
     1397                                        <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input ltr" value="" size="20" />
    13981398                                        <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>">
    13991399                                                <span class="dashicons dashicons-visibility" aria-hidden="true"></span>
    14001400                                        </button>