694 | | $crop = $nocrop ? false : get_option("{$size}_crop"); |
695 | | $_sizes[ $size ] = array( 'width' => get_option("{$size}_size_w"), 'height' => get_option("{$size}_size_h"), 'crop' => $crop ); |
| 696 | if ( isset( $_wp_additional_image_sizes[ $size ] ) ) { |
| 697 | $width = intval( $_wp_additional_image_sizes[ $size ]['width'] ); |
| 698 | $height = intval( $_wp_additional_image_sizes[ $size ]['height'] ); |
| 699 | $crop = ( $nocrop ) ? false : intval( $_wp_additional_image_sizes[ $size ]['crop'] ); |
| 700 | } else { |
| 701 | $height = get_option( "{$size}_size_h" ); |
| 702 | $width = get_option( "{$size}_size_w" ); |
| 703 | $crop = ( $nocrop ) ? false : get_option( "{$size}_crop" ); |
| 704 | } |
| 705 | |
| 706 | $_sizes[ $size ] = array( 'width' => $width, 'height' => $height, 'crop' => $crop ); |