WordPress.org

Make WordPress Core

Ticket #21959: 21959.patch

File 21959.patch, 559 bytes (added by SergeyBiryukov, 19 months ago)
  • wp-includes/media.php

     
    454454                $dir = $_dest_path; 
    455455        $destfilename = "{$dir}/{$name}-{$suffix}.{$ext}"; 
    456456 
     457        $destfilename = apply_filters( 'image_resize_destination_filename', $destfilename, $suffix, $ext, $file ); 
     458 
    457459        if ( IMAGETYPE_GIF == $orig_type ) { 
    458460                if ( !imagegif( $newimage, $destfilename ) ) 
    459461                        return new WP_Error('resize_path_invalid', __( 'Resize path invalid' ));