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. git-svn-id: https://develop.svn.wordpress.org/trunk@27743 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
befc57bc7c
commit
cce32aa627
@ -374,6 +374,11 @@ ol.ol-decimal > li {
|
||||
margin: 0 0 0.5em;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
.ltr {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
.code,
|
||||
code {
|
||||
|
@ -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;
|
||||
|
@ -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 ) : ?>
|
||||
|
Loading…
Reference in New Issue
Block a user