Delete postmeta when deleting a post. Bug 0000080.

git-svn-id: https://develop.svn.wordpress.org/trunk@1495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-07-28 16:08:03 +00:00
parent 043890f9a5
commit fa20b7cdb7
1 changed files with 2 additions and 0 deletions

View File

@ -466,6 +466,8 @@ case 'delete':
$categories = $wpdb->query("DELETE FROM $wpdb->post2cat WHERE post_id = $post_id");
$meta = $wpdb->query("DELETE FROM $wpdb->postmeta WHERE post_id = $post_id");
if (isset($sleep_after_edit) && $sleep_after_edit > 0) {
sleep($sleep_after_edit);
}