You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like job_manager_get_resized_image() is only used when the company logo is stored in postmeta, from pre-1.24.0 so those would be old entries but your fix works in my testing. I'll submit a PR shortly.
Fixes#706
The function job_manager_get_resized_image() creates images that
use the strings, 'thumbnail', 'medium', 'large' rather than the
dimensions that WordPress uses. This fixes that and the plugin
will use files that might already have been generated by
WordPress. Props @spencerfinnell.
What I Expected To Happen
Use
job_manager_get_resized_image( 'http://image.com/image.jpg', 'thumbnail' );
and gethttp://image.com/image-150x150.jpg
returned.What Happened Instead
http://image.com/image-thumbnail.jpg
is generated and returned instead of the already existinghttp://image.com/image-150x150.jpg
Steps to Reproduce the Bug
Call
job_manager_get_resized_image( 'http://image.com/image.jpg', 'thumbnail' );
Suggested Fix
$resized_logo_path = str_replace( '.' . $path_parts['extension'], '-' . $size . '.' . $path_parts['extension'], $logo_path );
Should not look for
$size
directly but instead the combined$img_width
and$img_height
that are declared above.The text was updated successfully, but these errors were encountered: