700 | | $crop = $nocrop ? false : get_option("{$size}_crop"); |
701 | | $_sizes[ $size ] = array( 'width' => get_option("{$size}_size_w"), 'height' => get_option("{$size}_size_h"), 'crop' => $crop ); |
| 702 | if ( isset( $_wp_additional_image_sizes[$size] ) ) { |
| 703 | $width = intval( $_wp_additional_image_sizes[$size]['width'] ); |
| 704 | $height = intval( $_wp_additional_image_sizes[$size]['height'] ); |
| 705 | $crop = ( $nocrop ) ? false : intval( $_wp_additional_image_sizes[$size]['crop'] ); |
| 706 | } else { |
| 707 | $height = get_option( "{$size}_size_h" ); |
| 708 | $width = get_option( "{$size}_size_w" ); |
| 709 | $crop = ( $nocrop ) ? false : get_option( "{$size}_crop" ); |
| 710 | } |
| 711 | |
| 712 | $_sizes[ $size ] = array( 'width' => $width, 'height' => $height, 'crop' => $crop ); |