Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#23067 closed defect (bug) (fixed)

wp_delete_user() doesn't check if the user exists

Reported by: scribu's profile scribu Owned by: nacin's profile 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 11 years ago.
23067.2.diff (780 bytes) - added by scribu 11 years ago.
same deal for wpmu_delete_user()

Download all attachments as: .zip

Change History (5)

11 years ago

#1 @scribu
11 years ago

Similar: #22858

11 years ago

same deal for wpmu_delete_user()

#2 @SergeyBiryukov
11 years ago

  • Keywords commit added

#3 @nacin
11 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.