Skip to content

Commit c324934

Browse files
committed
Changes from 54915.1.diff
1 parent 5836a43 commit c324934

File tree

9 files changed

+19
-14
lines changed

9 files changed

+19
-14
lines changed

src/wp-activate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ function wpmu_activate_stylesheet() {
108108
.wp-activate-container { width: 90%; margin: 0 auto; }
109109
.wp-activate-container form { margin-top: 2em; }
110110
#submit, #key { width: 100%; font-size: 24px; box-sizing: border-box; }
111+
#key { direction: ltr; }
111112
#language { margin-top: 0.5em; }
112113
.wp-activate-container .error { background: #f66; color: #333; }
113114
span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; }

src/wp-admin/css/forms.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ textarea:focus {
108108
}
109109

110110
/* rtl:ignore */
111+
.ltr,
112+
input[type="password"],
111113
input[type="email"],
112114
input[type="url"] {
113115
direction: ltr;

src/wp-admin/edit-form-comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<tr>
5858
<td class="first"><label for="email"><?php _e( 'Email' ); ?></label></td>
5959
<td>
60-
<input type="text" name="newcomment_author_email" size="30" value="<?php echo esc_attr( $comment->comment_author_email ); ?>" id="email" />
60+
<input type="text" name="newcomment_author_email" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_email ); ?>" id="email" />
6161
</td>
6262
</tr>
6363
<tr>

src/wp-admin/includes/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $
486486

487487
<div class="inside">
488488
<label for="author-email"><?php _e( 'Email' ); ?></label>
489-
<input type="text" name="newcomment_author_email" size="50" value="" id="author-email" />
489+
<input type="text" name="newcomment_author_email" size="50" class="code" value="" id="author-email" />
490490
</div>
491491

492492
<div class="inside">

src/wp-admin/install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function display_setup_form( $error = null ) {
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
}
@@ -140,7 +140,7 @@ function display_setup_form( $error = null ) {
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="new-password" 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="new-password" 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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
<table class="form-table" role="presentation">
410410
<tr class="user-user-login-wrap">
411411
<th><label for="user_login"><?php _e( 'Username' ); ?></label></th>
412-
<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>
412+
<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>
413413
</tr>
414414

415415
<?php if ( ! IS_PROFILE_PAGE && ! is_network_admin() && current_user_can( 'promote_user', $profile_user->ID ) ) : ?>
@@ -638,7 +638,7 @@
638638
<button type="button" class="button wp-generate-pw hide-if-no-js" aria-expanded="false"><?php _e( 'Set New Password' ); ?></button>
639639
<div class="wp-pwd hide-if-js">
640640
<span class="password-input-wrapper">
641-
<input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="new-password" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
641+
<input type="password" name="pass1" id="pass1" class="regular-text ltr" value="" autocomplete="new-password" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
642642
</span>
643643
<button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
644644
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
@@ -779,7 +779,7 @@
779779
<div class="create-application-password form-wrap">
780780
<div class="form-field">
781781
<label for="new_application_password_name"><?php _e( 'New Application Password Name' ); ?></label>
782-
<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" />
782+
<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" />
783783
<p class="description" id="new_application_password_name_desc"><?php _e( 'Required to create an Application Password, but not to update the user.' ); ?></p>
784784
</div>
785785

src/wp-admin/user-new.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
<table class="form-table" role="presentation">
513513
<tr class="form-field form-required">
514514
<th scope="row"><label for="user_login"><?php _e( 'Username' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
515-
<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" autocomplete="off" maxlength="60" /></td>
515+
<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" autocomplete="off" maxlength="60" /></td>
516516
</tr>
517517
<tr class="form-field form-required">
518518
<th scope="row"><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
@@ -571,7 +571,7 @@
571571
<div class="wp-pwd">
572572
<?php $initial_password = wp_generate_password( 24 ); ?>
573573
<span class="password-input-wrapper">
574-
<input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="new-password" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
574+
<input type="password" name="pass1" id="pass1" class="regular-text ltr" autocomplete="new-password" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
575575
</span>
576576
<button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
577577
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>

src/wp-login.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ function wp_login_viewport_meta() {
834834
<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
835835
<p>
836836
<label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
837-
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" />
837+
<input type="text" name="user_login" id="user_login" class="input ltr" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" />
838838
</p>
839839
<?php
840840

@@ -958,7 +958,7 @@ function wp_login_viewport_meta() {
958958
</p>
959959

960960
<div class="wp-pwd">
961-
<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="new-password" aria-describedby="pass-strength-result" />
961+
<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="new-password" aria-describedby="pass-strength-result" />
962962

963963
<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' ); ?>">
964964
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
@@ -1077,7 +1077,7 @@ function wp_login_viewport_meta() {
10771077
<form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
10781078
<p>
10791079
<label for="user_login"><?php _e( 'Username' ); ?></label>
1080-
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" autocomplete="username" />
1080+
<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" autocomplete="username" />
10811081
</p>
10821082
<p>
10831083
<label for="user_email"><?php _e( 'Email' ); ?></label>
@@ -1417,13 +1417,13 @@ function wp_login_viewport_meta() {
14171417
<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
14181418
<p>
14191419
<label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
1420-
<input type="text" name="log" id="user_login"<?php echo $aria_describedby; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" />
1420+
<input type="text" name="log" id="user_login"<?php echo $aria_describedby; ?> class="input ltr" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" />
14211421
</p>
14221422

14231423
<div class="user-pass-wrap">
14241424
<label for="user_pass"><?php _e( 'Password' ); ?></label>
14251425
<div class="wp-pwd">
1426-
<input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby; ?> class="input password-input" value="" size="20" autocomplete="current-password" />
1426+
<input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby; ?> class="input password-input ltr" value="" size="20" autocomplete="current-password" />
14271427
<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' ); ?>">
14281428
<span class="dashicons dashicons-visibility" aria-hidden="true"></span>
14291429
</button>

src/wp-signup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ function wpmu_signup_stylesheet() {
6767
.mu_register #user_email,
6868
.mu_register #blogname,
6969
.mu_register #user_name { width: 100%; font-size: 24px; margin: 5px 0; box-sizing: border-box; }
70+
.mu_register input[type="email"],
71+
.mu_register #user_name { direction: ltr; }
7072
.mu_register #site-language { display: block; }
7173
.mu_register .prefix_address,
7274
.mu_register .suffix_address { font-size: 18px; display: inline-block; direction: ltr; }

0 commit comments

Comments
 (0)