From 2ac66e7fc15a49b796ba493584ba5f85396ab6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Cabrera?= Date: Thu, 17 Jul 2014 18:31:40 -0430 Subject: [PATCH] Fixes wrong variable reference in __image_resize() --- wordpress-popular-posts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordpress-popular-posts.php b/wordpress-popular-posts.php index 458deefc..52bbe702 100644 --- a/wordpress-popular-posts.php +++ b/wordpress-popular-posts.php @@ -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);