Make WordPress Core

Changeset 33160


Ignore:
Timestamp:
07/11/2015 02:34:47 AM (9 years ago)
Author:
jeremyfelt
Message:

Set autocapitalize to none, autocorrect to off for new username inputs on iOS.

This corrects both the standard wp-admin new user form and the network new user form.

Props @brad2dabone, @sunnnyratilal.
Fixes #32644.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/user-new.php

    r32974 r33160  
    9090        <tr class="form-field form-required">
    9191            <th scope="row"><label for="username"><?php _e( 'Username' ) ?></label></th>
    92             <td><input type="text" class="regular-text" name="user[username]" id="username" /></td>
     92            <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" /></td>
    9393        </tr>
    9494        <tr class="form-field form-required">
  • trunk/src/wp-admin/user-new.php

    r33137 r33160  
    363363    <tr class="form-field form-required">
    364364        <th scope="row"><label for="user_login"><?php _e('Username'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    365         <td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr($new_user_login); ?>" aria-required="true" /></td>
     365        <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" /></td>
    366366    </tr>
    367367    <tr class="form-field form-required">
Note: See TracChangeset for help on using the changeset viewer.