Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#42886 closed enhancement (fixed)

Disable autocapitalize for the user login field on wp-login.php

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 5.1 Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords: good-first-bug has-patch needs-testing commit
Focuses: ui Cc:

Description

When logging in to WordPress with Chrome on Android, the Username or Email Address field has autocapitalization enabled, which is not desirable. Using Chrome or Safari on iOS the field is not autocapitalized, but I'm not sure why (might be an iOS thing).

Autocapitalization can be disabled using the autocapitalize="off" attribute. This should be applied to the user_login field when logging in, performing a password reset, registering, etc.

Attachments (1)

42886.diff (2.1 KB) - added by drywallbmb 7 years ago.

Download all attachments as: .zip

Change History (9)

@drywallbmb
7 years ago

#1 @drywallbmb
7 years ago

Seems straightforward enough.... right?

#2 @johnbillion
7 years ago

  • Keywords has-patch needs-testing added; needs-patch removed
  • Milestone changed from Awaiting Review to 5.0

#3 in reply to: ↑ description @SergeyBiryukov
7 years ago

Replying to johnbillion:

When logging in to WordPress with Chrome on Android, the Username or Email Address field has autocapitalization enabled, which is not desirable.

Hmm, could not reproduce with Chrome 62 on Android 5.1.1 or 4.3.0.

Per https://developers.google.com/web/updates/2015/04/autocapitalize, autocapitalize="off" is the default value. Has something changed since that post?

#4 @johnbillion
7 years ago

I'm running Android 7.1. Something might have changed. I don't have any older Android devices immediately to hand to test.

#5 @SergeyBiryukov
7 years ago

  • Keywords commit added

Nevermind, reproduced with default keyboard (previously was running Gboard). 42886.diff works as expected.

#6 @johnbillion
7 years ago

  • Owner set to johnbillion
  • Status changed from new to reviewing

#7 @johnbillion
7 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 42406:

Login and Registration: Instruct the browser to disable autocapitalisation for the user login field on the login screen.

Props drywallbmb
Fixes #42886

#8 @johnbillion
6 years ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.