WordPress.org

Make WordPress Core

Opened 7 months ago

Closed 7 months ago

#22516 closed defect (bug) (duplicate)

wp_authenticate_username_password() should check for a WP_Error object

Reported by: barry Owned by:
Priority: normal Milestone:
Component: Users Version:
Severity: normal Keywords: has-patch
Cc:

Description (last modified by barry)

wp_authenticate_username_password() needs to check to make sure $user is not a WP_Error object early on. It's possible that something hooked into authenticate earlier than wp_authenticate_username_password() and has already returned an error.

Attachments (1)

22516.diff (497 bytes) - added by barry 7 months ago.

Download all attachments as: .zip

Change History (4)

barry7 months ago

comment:1 barry7 months ago

  • Description modified (diff)

comment:2 SergeyBiryukov7 months ago

  • Component changed from General to Users
  • Keywords has-patch added

comment:3 nacin7 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This looks like the same issue as #19714. Mostly the same patch as well. Carry the discussion there?

Note: See TracTickets for help on using tickets.