We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0d903 commit bec0c0dCopy full SHA for bec0c0d
php/class-delivery.php
@@ -1305,7 +1305,7 @@ public function parse_element( $element ) {
1305
1306
// Check if this is a crop or a scale.
1307
$has_size = $this->media->get_size_from_url( $this->sanitize_url( $raw_url ) );
1308
- if ( ! empty( $has_size ) ) {
+ if ( ! empty( $has_size ) && ! empty( $item['height'] ) ) {
1309
$file_ratio = round( $has_size[0] / $has_size[1], 2 );
1310
$original_ratio = round( $item['width'] / $item['height'], 2 );
1311
if ( $file_ratio !== $original_ratio ) {
0 commit comments