Skip to content

Commit

Permalink
Fixes wrong variable reference in __image_resize()
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrerahector committed Jul 17, 2014
1 parent 7bc7ef5 commit 2ac66e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordpress-popular-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@ private function __image_resize($path, $thumbnail, $dimension, $source) {
$new_img = $image->save();

if (is_wp_error($new_img)) {
return $this->_render_image($this->default_thumbnail, $dimension, 'wpp-thumbnail wpp_imgeditor_error wpp_' . $source, '', $image->get_error_message());
return $this->_render_image($this->default_thumbnail, $dimension, 'wpp-thumbnail wpp_imgeditor_error wpp_' . $source, '', $new_img->get_error_message());
}

$new_img = str_replace(basename($thumbnail), $new_img['file'], $thumbnail);
Expand Down

0 comments on commit 2ac66e7

Please sign in to comment.