- // This is not necessary for thumbnails and medium size.
- if ( 'thumbnail' == $size || 'medium' == $size ) {
- $width = $size_meta['width'];
- $height = $size_meta['height'];
- } else {
- list( $width, $height ) = image_constrain_size_for_editor( $size_meta['width'], $size_meta['height'], $size, 'edit' );
- }
+ // Thumbnail, medium, and full sizes are also checked against the site's height/width options.
+ list( $width, $height ) = image_constrain_size_for_editor( $size_meta['width'], $size_meta['height'], $size, 'edit' );