Make WordPress Core

Ticket #34437: image_downsize.patch

File image_downsize.patch, 503 bytes (added by justinbusa, 9 years ago)
  • wp-includes/media.php

     
    29092909
    29102910                        /** This filter is documented in wp-includes/media.php */
    29112911                        if ( $downsize = apply_filters( 'image_downsize', false, $attachment->ID, $size ) ) {
    2912                                 if ( ! $downsize[3] )
     2912                                if ( ! isset( $downsize[3] ) )
    29132913                                        continue;
    29142914                                $sizes[ $size ] = array(
    29152915                                        'height'      => $downsize[2],