Make WordPress Core

Opened 5 years ago

Closed 3 years ago

#16359 closed defect (bug) (wontfix)

When deleting a user, wp_delete_post needs to force-delete

Reported by: nacin Owned by:
Milestone: Priority: normal
Severity: major Version: 2.9
Component: Trash Keywords: has-patch dev-feedback 3.3-early
Focuses: Cc:


Currently we orphan all of the posts and send them to the trash.

I can't imagine that being desired behavior. We specifically tell them we're deleting the posts and give them a confirmation screen (and an option to port them to an existing user).

Marking version at 2.9, as that's when wp_delete_post() became trash by default. Presumably it can be seen back that far.

Not sure how this wasn't caught until now. A related bug was originally reported by flashingcursor on Twitter.

Attachments (1)

16359.diff (371 bytes) - added by nacin 5 years ago.

Download all attachments as: .zip

Change History (8)

5 years ago

#1 @nacin
5 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 3.1

Moving to 3.1. If this is not desired behavior, it should be fixed now. If it is, then it should be wontfix'd.

This brings back recollections of an old discussion, one of the earlier ones I was involved in, #11470.

#2 @nacin
5 years ago

  • Component changed from General to Trash
  • Keywords dev-feedback added

Patch might overlap with #16358.

Not actually tested (despite being an obvious fix). More important is to make a decision on the desired behavior.

#3 @westi
5 years ago

  • Keywords 3.2-early added
  • Milestone changed from 3.1 to Future Release

This is not a regression in 3.1 so can wait till 3.2 to be fixed.

#5 @flashingcursor
5 years ago

  • Cc flashingcursor added

#6 @ocean90
4 years ago

  • Keywords 3.3-early added; 3.2-early removed

#7 @nacin
3 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Few seem to care. On second thought, trash seems like a good location for these.

Note: See TracTickets for help on using tickets.