WordPress.org

Make WordPress Core

Ticket #23401: image.php.patch

File image.php.patch, 539 bytes (added by amereservant, 3 years ago)

Proposed filter variable

  • wp-admin/includes/image.php

     
    100100                                $sizes[$s]['crop'] = get_option( "{$s}_crop" ); // For default sizes set in options 
    101101                } 
    102102 
    103                 $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes ); 
     103                $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata ); 
    104104 
    105105                if ( $sizes ) { 
    106106                        $editor = wp_get_image_editor( $file );