WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 2 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:

Description

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)

@scribu3 years ago

comment:1 @scribu3 years ago

Similar: #22858

@scribu3 years ago

same deal for wpmu_delete_user()

comment:2 @SergeyBiryukov2 years ago

  • Keywords commit added

comment:3 @nacin2 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.