Size changed when I save
-
Hi guys!
I was having an issue. When I select an image and then click on “Save” the size of the image was always set to the thumbnail size.I was taking a look on the plugin code and I found out this on the image-widget.php file on line 311
$output .= wp_get_attachment_image($instance['attachment_id'], $size, false, $attr);
Even when the $size is set to the right value from the attachment it seems that the wp_get_attachment_image function doesn’t support the $size parameter (as an array with the width and height) since the version 2.5 so it gets always the thumbnail image instead.
I think you should find a workaround for this. I just used the ‘full’ value for the $size variable and it worked for my need.
I hope this could be helpful for someone else!
Regards!
- The topic ‘Size changed when I save’ is closed to new replies.