Fix LTR field handling:

* Restore .ltr class lost in the conversion to RTL as a build process.
 * Make email and url inputs always LTR.
 * Set an email field on user-edit to be LTR.

props MikeHansenMe, yoavf for initial patches.
fixes #26824.

Built from https://develop.svn.wordpress.org/trunk@27743


git-svn-id: http://core.svn.wordpress.org/trunk@27580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-03-26 17:12:14 +00:00
parent 0c34f4f136
commit 0331d62fef
9 changed files with 27 additions and 5 deletions

View File

@ -374,6 +374,11 @@ ol.ol-decimal > li {
margin: 0 0 0.5em;
}
/* @noflip */
.ltr {
direction: ltr;
}
/* @noflip */
.code,
code {

View File

@ -374,6 +374,11 @@ ol.ol-decimal > li {
margin: 0 0 0.5em;
}
/* @noflip */
.ltr {
direction: ltr;
}
/* @noflip */
.code,
code {

View File

@ -12,6 +12,12 @@ textarea {
box-sizing: border-box;
}
/* @noflip */
input[type="email"],
input[type="url"] {
direction: ltr;
}
input[type="checkbox"],
input[type="radio"] {
border: 1px solid #bbb;

View File

@ -12,6 +12,12 @@ textarea {
box-sizing: border-box;
}
/* @noflip */
input[type="email"],
input[type="url"] {
direction: ltr;
}
input[type="checkbox"],
input[type="radio"] {
border: 1px solid #bbb;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -401,7 +401,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
<table class="form-table">
<tr>
<th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
<td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />
<td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text ltr" />
<?php
$new_email = get_option( $current_user->ID . '_new_email' );
if ( $new_email && $new_email['newemail'] != $current_user->user_email && $profileuser->ID == $current_user->ID ) : ?>