Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#18755 closed defect (bug) (fixed)

PHP Notices when requesting new password

Reported by: ampt Owned by: ryan
Milestone: 3.3 Priority: normal
Severity: minor Version:
Component: Warnings/Notices Keywords: has-patch
Focuses: Cc:


Submitting the lost password form without $_POST['user_login'] displays the following notices:

Notice: Undefined index: user_login in /wp-login.php on line 174
Notice: Undefined index: user_login in /wp-login.php on line 179

The current logic implies that $_POST['user_login'] is defined.

Example POST data submission:


We can also remove $_POST['user_email'] as it doesn't seem to be used in the lost password form.

Attachments (1)

18755.patch (737 bytes) - added by ampt 9 years ago.

Download all attachments as: .zip

Change History (3)

9 years ago

#1 @SergeyBiryukov
9 years ago

  • Milestone changed from Awaiting Review to 3.3

#2 @ryan
9 years ago

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

In [19056]:

Avoid warning when user_login not in POST. Props ampt. fixes #18755

Note: See TracTickets for help on using tickets.