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);