Update class-wc-regenerate-images.php
Fix coding styles and naming error
This commit is contained in:
parent
bb8bf5f749
commit
5f9225a1cb
|
@ -219,8 +219,8 @@ class WC_Regenerate_Images {
|
|||
$imagedata['width'] = $imagedata['sizes']['full']['width'];
|
||||
}
|
||||
|
||||
if ( $image_size['width'] && $image_size['height'] ) {
|
||||
$ratio_match = wp_image_matches_ratio($image[1], $image[2], $imagedata['width'], $imagedata['height']);
|
||||
if ( $imagedata['width'] && $imagedata['height'] ) {
|
||||
$ratio_match = wp_image_matches_ratio( $image[1], $image[2], $imagedata['width'], $imagedata['height'] );
|
||||
}
|
||||
} else {
|
||||
$ratio_match = wp_image_matches_ratio( $image[1], $image[2], $image_size['width'], $image_size['height'] );
|
||||
|
|
Loading…
Reference in New Issue