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:
parent
48cfb85902
commit
d45cb4460a
|
@ -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