Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 8 years ago

#80 closed defect (bug) (fixed)

post meta data is not deleted when the post is deleted

Reported by: skippy's profile skippy Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: minor Version: 1.2
Component: Administration Keywords:
Focuses: Cc:

Description

Deleting a post ought to delete that post's meta data. It does not.

Change History (5)

#2 @majelbstoat
20 years ago

Should be a simple enough patch... I think

$meta = $wpdb->query("DELETE FROM $wpdb->postmeta WHERE post_id = $post_id");

should be inserted after the statements in 'post.php' that delete the post2cat, comments and post entry itself.

#3 @ryan
20 years ago

  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed

This ticket was mentioned in Slack in #core-passwords by stevenkword. View the logs.


8 years ago

Note: See TracTickets for help on using tickets.