WordPress.org

Make WordPress Core

Ticket #7759: 7759.1.diff

File 7759.1.diff, 585 bytes (added by ShaneF, 10 years ago)
  • post.php

     
    23852385        }
    23862386
    23872387        // remove intermediate images if there are any
    2388         $sizes = apply_filters('intermediate_image_sizes', array('thumbnail', 'medium'));
     2388        $sizes = apply_filters('intermediate_image_sizes', array('thumbnail', 'medium', 'large'));
    23892389        foreach ( $sizes as $size ) {
    23902390                if ( $intermediate = image_get_intermediate_size($postid, $size) ) {
    23912391                        $intermediate_file = apply_filters('wp_delete_file', $intermediate['path']);