Make WordPress Core


Ignore:
Timestamp:
07/11/2015 02:34:47 AM (10 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.