Delete postmeta when deleting a post. Bug 0000080.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-07-28 16:08:03 +00:00
parent 48cfb85902
commit d45cb4460a
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);
}