Make WordPress Core

Ticket #34124: 34124.patch

File 34124.patch, 498 bytes (added by A5hleyRich, 9 years ago)
  • src/wp-includes/media.php

    diff --git src/wp-includes/media.php src/wp-includes/media.php
    index 44e18f4..a3aa8f6 100644
    function image_get_intermediate_size( $post_id, $size = 'thumbnail' ) { 
    658658                $data['path'] = path_join( dirname($imagedata['file']), $data['file'] );
    659659                $data['url'] = path_join( dirname($file_url), $data['file'] );
    660660        }
    661         return $data;
     661        return apply_filters( 'image_get_intermediate_size', $data, $post_id, $size );
    662662}
    663663
    664664/**