Make WordPress Core

Changeset 27743


Ignore:
Timestamp:
03/26/2014 05:11:47 PM (11 years ago)
Author:
nacin
Message:

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.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r27678 r27743  
    373373ol.ol-decimal > li {
    374374    margin: 0 0 0.5em;
     375}
     376
     377/* @noflip */
     378.ltr {
     379    direction: ltr;
    375380}
    376381
  • trunk/src/wp-admin/css/forms.css

    r27741 r27743  
    1111    -moz-box-sizing: border-box;
    1212    box-sizing: border-box;
     13}
     14
     15/* @noflip */
     16input[type="email"],
     17input[type="url"] {
     18    direction: ltr;
    1319}
    1420
  • trunk/src/wp-admin/user-edit.php

    r27469 r27743  
    402402<tr>
    403403    <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    404     <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />
     404    <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text ltr" />
    405405    <?php
    406406    $new_email = get_option( $current_user->ID . '_new_email' );
Note: See TracChangeset for help on using the changeset viewer.