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:
parent
043890f9a5
commit
fa20b7cdb7
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue