Ticket #8909: delete_attachment.diff
| File delete_attachment.diff, 594 bytes (added by filosofo, 4 years ago) |
|---|
-
wp-includes/post.php
2493 2493 $meta = wp_get_attachment_metadata( $postid ); 2494 2494 $file = get_attached_file( $postid ); 2495 2495 2496 do_action('delete_attachment', $postid); 2497 2496 2498 /** @todo Delete for pluggable post taxonomies too */ 2497 2499 wp_delete_object_term_relationships($postid, array('category', 'post_tag')); 2498 2500 … … 2529 2531 2530 2532 clean_post_cache($postid); 2531 2533 2532 do_action('delete_attachment', $postid);2533 2534 2534 return $post; 2535 2535 } 2536 2536
