Skip to content

Commit

Permalink
Merge pull request tomaszsita#11 from sitecrafting/master
Browse files Browse the repository at this point in the history
acobster — Fixes bug preventing creation of new Retina crops

* sitecrafting-master:
  bugfix: prevent check for whether to make a Retina crop from always failing
  • Loading branch information
mcaskill committed Sep 18, 2018
2 parents c32c9c9 + 35a7dcd commit 5f8f088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ManualImageCrop.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public function cropImage( $data = null, $silent_result = false ) {
}

// Generate Retina Image
if ( isset( $data['make2x'] ) && $data['make2x'] === 'true' ) {
if ( isset( $data['make2x'] ) && $data['make2x'] === true ) {
$dst_w2x = $dst_w * 2;
$dst_h2x = $dst_h * 2;

Expand Down

0 comments on commit 5f8f088

Please sign in to comment.