Use correct var name. Props miqrogroove. fixes #10821

git-svn-id: https://develop.svn.wordpress.org/trunk@12307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-12-01 19:41:41 +00:00
parent af737032df
commit a17b3af236
1 changed files with 1 additions and 1 deletions

View File

@ -2852,7 +2852,7 @@ function wp_delete_attachment( $post_id, $force_delete = false ) {
do_action('delete_attachment', $post_id);
wp_delete_object_term_relationships($post_id, array('category', 'post_tag'));
wp_delete_object_term_relationships($postid, get_object_taxonomies($post->post_type));
wp_delete_object_term_relationships($post_id, get_object_taxonomies($post->post_type));
$wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->postmeta WHERE meta_key = '_thumbnail_id' AND meta_value = %d", $post_id ));