Ticket #54915: 54915.diff
File 54915.diff, 9.9 KB (added by , 3 years ago) |
---|
-
src/wp-admin/css/forms.css
108 108 } 109 109 110 110 /* rtl:ignore */ 111 .ltr, 112 input[type="password"], 111 113 input[type="email"], 112 114 input[type="url"] { 113 115 direction: ltr; -
src/wp-admin/install.php
123 123 echo '<input name="user_name" type="hidden" value="admin" />'; 124 124 } else { 125 125 ?> 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 ) ); ?>" /> 127 127 <p><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods, and the @ symbol.' ); ?></p> 128 128 <?php 129 129 } … … 140 140 <td> 141 141 <div class="wp-pwd"> 142 142 <?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" /> 144 144 <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' ); ?>"> 145 145 <span class="dashicons dashicons-hidden"></span> 146 146 <span class="text"><?php _e( 'Hide' ); ?></span> -
src/wp-admin/user-edit.php
413 413 <table class="form-table" role="presentation"> 414 414 <tr class="user-user-login-wrap"> 415 415 <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> 417 417 </tr> 418 418 419 419 <?php if ( ! IS_PROFILE_PAGE && ! is_network_admin() && current_user_can( 'promote_user', $profile_user->ID ) ) : ?> … … 640 640 <button type="button" class="button wp-generate-pw hide-if-no-js" aria-expanded="false"><?php _e( 'Set New Password' ); ?></button> 641 641 <div class="wp-pwd hide-if-js"> 642 642 <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" /> 644 644 </span> 645 645 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 646 646 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> … … 774 774 <div class="create-application-password form-wrap"> 775 775 <div class="form-field"> 776 776 <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" /> 778 778 <p class="description" id="new_application_password_name_desc"><?php _e( 'Required to create an Application Password, but not to update the user.' ); ?></p> 779 779 </div> 780 780 -
src/wp-admin/user-new.php
506 506 <table class="form-table" role="presentation"> 507 507 <tr class="form-field form-required"> 508 508 <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> 510 510 </tr> 511 511 <tr class="form-field form-required"> 512 512 <th scope="row"><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th> … … 565 565 <div class="wp-pwd"> 566 566 <?php $initial_password = wp_generate_password( 24 ); ?> 567 567 <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" /> 569 569 </span> 570 570 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 571 571 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> -
src/wp-login.php
830 830 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> 831 831 <p> 832 832 <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" /> 834 834 </p> 835 835 <?php 836 836 … … 944 944 </p> 945 945 946 946 <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" /> 948 948 949 949 <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' ); ?>"> 950 950 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> … … 1063 1063 <form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate"> 1064 1064 <p> 1065 1065 <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" /> 1067 1067 </p> 1068 1068 <p> 1069 1069 <label for="user_email"><?php _e( 'Email' ); ?></label> … … 1388 1388 <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> 1389 1389 <p> 1390 1390 <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" /> 1392 1392 </p> 1393 1393 1394 1394 <div class="user-pass-wrap"> 1395 1395 <label for="user_pass"><?php _e( 'Password' ); ?></label> 1396 1396 <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" /> 1398 1398 <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' ); ?>"> 1399 1399 <span class="dashicons dashicons-visibility" aria-hidden="true"></span> 1400 1400 </button>