Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#23067 closed defect (bug) (fixed)

wp_delete_user() doesn't check if the user exists

Reported by: scribu Owned by: nacin
Milestone: 3.6 Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch commit
Focuses: Cc:


It just calls $user = new WP_User( $id ); and that's it.

Attachments (2)

23067.diff (401 bytes) - added by scribu 3 years ago.
23067.2.diff (780 bytes) - added by scribu 3 years ago.
same deal for wpmu_delete_user()

Download all attachments as: .zip

Change History (5)

3 years ago

#1 @scribu
3 years ago

Similar: #22858

3 years ago

same deal for wpmu_delete_user()

#2 @SergeyBiryukov
3 years ago

  • Keywords commit added

#3 @nacin
3 years ago

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

In 23380:

Confirm a user exists before deleting them in wp_delete_user() and wpmu_delete_user(). props scribu, fixes #23067.

Note: See TracTickets for help on using tickets.