Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13165 closed enhancement (fixed)

Keep "Remember me" checkbox checked

Reported by: xibe Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: UI Keywords: has-patch ux-feedback
Focuses: Cc:


One tiny annoying thing with WP's login is that, when you enter your id/pwd and tick the "Remember Me" checkbox, if your id or password is wrong, once the page reloaded, the checkbox is unticked.

Since I'm on a good number of blogs, and I use a different password for each of them, I like to prevent relogging by ticking the box, yet I often have to try 2/3 times to get the right password - hance having to tick the box for every failure.

Therefore, it'd be nice if the form could remember the status of the checkbox.

Attachments (1)

13165.patch (1.3 KB) - added by xibe 5 years ago.
Using $_POSTrememberme?.

Download all attachments as: .zip

Change History (6)

@xibe5 years ago

Using $_POSTrememberme?.

comment:1 @xibe5 years ago

  • Keywords has-patch dev-feedback added

comment:2 @nacin5 years ago

  • Keywords ux-feedback added; dev-feedback removed

Style notes:

$rememberbe should always be set. In this case, it would emit an E_NOTICE when it is not checked. Change the first chunk of code to $rememberme = !empty( $_POST['rememberme'] );. For the second chunk, we have checked(). simply do checked($rememberme);.

Ticket notes:

I'd like some UX feedback on this, as I'm not sure if there is a reason why we don't do this.

comment:3 @jane5 years ago

There is no reason afaik and the current behavior drives me insane every day. That's why I'm so weird.

comment:4 @nacin5 years ago

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

(In [14280]) Keep 'remember me' checked when user/pass is incorrect. props xibe, fixes #13165.

comment:5 @xibe5 years ago

Thanks for correcting my patch, Nacin. Will take note.

Note: See TracTickets for help on using tickets.