WordPress.org

Make WordPress Core

#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:

Description

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

Attachments (2)

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

Download all attachments as: .zip

Change History (5)

scribu16 months ago

comment:1 scribu16 months ago

Similar: #22858

scribu16 months ago

same deal for wpmu_delete_user()

comment:2 SergeyBiryukov15 months ago

  • Keywords commit added

comment:3 nacin15 months 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.