Opened 5 months ago

Closed 4 months ago

#23067 closed defect (bug) (fixed)

wp_delete_user() doesn't check if the user exists

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

Description

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

Attachments (2)

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

Download all attachments as: .zip

Change History (5)

scribu5 months ago

Similar: #22858

scribu5 months ago

same deal for wpmu_delete_user()

  • Keywords commit added
  • 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.