From 313dc5022a0e1a4a30d480bcf2610786acbf40cd Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 17 Sep 2008 19:19:15 +0000 Subject: [PATCH] Remove 'large' image size when deleting attachments, props ShaneF, fixes #7759 git-svn-id: https://develop.svn.wordpress.org/trunk@8918 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 9eb37a1d1f..453f45c70e 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2385,7 +2385,7 @@ function wp_delete_attachment($postid) { } // remove intermediate images if there are any - $sizes = apply_filters('intermediate_image_sizes', array('thumbnail', 'medium')); + $sizes = apply_filters('intermediate_image_sizes', array('thumbnail', 'medium', 'large')); foreach ( $sizes as $size ) { if ( $intermediate = image_get_intermediate_size($postid, $size) ) { $intermediate_file = apply_filters('wp_delete_file', $intermediate['path']);