Skip to content

Commit

Permalink
Fix 2x image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
egrossnickle committed Oct 7, 2015
1 parent 3edcc91 commit 46ce4d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ManualImageCrop.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public function cropImage() {
}

// 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
2 changes: 1 addition & 1 deletion lib/ManualImageCropEditorWindow.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function renderWindow() {
if ( is_plugin_active('wp-retina-2x/wp-retina-2x.php') ) { ?>
<div class="mic-option">
<input type="checkbox" id="mic-make-2x"
<?php if(get_option('mic_make2x') === 'true' ) echo 'checked="checked"' ?> />
<?php if(get_option('mic_make2x')) echo 'checked="checked"' ?> />
<label for="mic-make-2x"><?php _e('Generate Retina/HiDPI (@2x):', 'microp') ?>
<span id="mic-2x-status"></span> </label>
</div>
Expand Down

0 comments on commit 46ce4d7

Please sign in to comment.