"Unstick" posts when deleting, fixes #8860

git-svn-id: http://svn.automattic.com/wordpress/trunk@10363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-01-15 00:47:56 +00:00
parent 3f7facfbe6
commit 7b2265e598
1 changed files with 2 additions and 0 deletions

View File

@ -1131,6 +1131,8 @@ function wp_delete_post($postid = 0) {
$children = $wpdb->get_results($children_query);
$wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => 'page' ) );
} else {
unstick_post($postid);
}
// Do raw query. wp_get_post_revisions() is filtered