Opened 15 years ago
Closed 15 years ago
#12766 closed defect (bug) (fixed)
commentmeta data orphaned when deleting a post from the trash
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
Adding $force_delete param to wp_delete_comment().
wp_delete_post() will now delete each comment individually using wp_delete_comment() with the $force_delete param set to true.
This fixes and issue where related commentmeta is orphaned when deleting a post from the trash.
Attachments (3)
Change History (12)
#3
@
15 years ago
Why the switch to post_parent. Seems that would delete comments from the wrong post.
#4
@
15 years ago
@ryan, you are correct, that seems to be a data loss bug. I'll fix it and re-post a patch.
Note: See
TracTickets for help on using
tickets.
Also, #11470