Make WordPress Core

Ticket #19393: 19393.5.diff

File 19393.5.diff, 738 bytes (added by SergeyBiryukov, 10 years ago)
  • src/wp-admin/includes/image-edit.php

     
    778778                        if ( isset( $_wp_additional_image_sizes[ $size ] ) ) {
    779779                                $width  = intval( $_wp_additional_image_sizes[ $size ]['width'] );
    780780                                $height = intval( $_wp_additional_image_sizes[ $size ]['height'] );
    781                                 $crop   = ( $nocrop ) ? false : intval( $_wp_additional_image_sizes[ $size ]['crop'] );
     781                                $crop   = ( $nocrop ) ? false : $_wp_additional_image_sizes[ $size ]['crop'];
    782782                        } else {
    783783                                $height = get_option( "{$size}_size_h" );
    784784                                $width  = get_option( "{$size}_size_w" );