| 593 | | $crop = $nocrop ? false : get_option("{$size}_crop"); |
| 594 | | $resized = image_make_intermediate_size($new_path, get_option("{$size}_size_w"), get_option("{$size}_size_h"), $crop ); |
| | 595 | if ( isset( $_wp_additional_image_sizes[$size] ) ) { |
| | 596 | $width = intval( $_wp_additional_image_sizes[$size]['width'] ); |
| | 597 | $height = intval( $_wp_additional_image_sizes[$size]['height'] ); |
| | 598 | $crop = ( $nocrop ) ? false : intval( $_wp_additional_image_sizes[$size]['crop'] ); |
| | 599 | } else { |
| | 600 | $height = get_option( "{$size}_size_h" ); |
| | 601 | $width = get_option( "{$size}_size_w" ); |
| | 602 | $crop = ( $nocrop ) ? false : get_option( "{$size}_crop" ); |
| | 603 | } |