Conversation
iamdharmesh
left a comment
There was a problem hiding this comment.
Thanks a lot for the PR @mendezcode. LGTM.
@dkotter, since we are updating the medium size with the thumbnail one, I’m tagging you here to check if you have any concerns with it. I did a quick check on this and couldn’t find a better solution.
dkotter
left a comment
There was a problem hiding this comment.
So in testing this out, I'm not seeing this working. I get the exact same images used both on this branch and on develop, unless there's something I'm missing here?
Working now, I thought I had the Feature enabled but did not, so the code wasn't loading 😅 This is working though I left a few comments. I don't necessarily love that this is a global change, does make me a bit worried this could impact other areas unintentionally but not seeing anything doing a quick review of the admin |


Description of the Change
Introduces a filter on wp_prepare_attachment_for_js and replaces the
mediumthumbnail size (150x300) with thethumbnailthumbnail size (150x150), which effectively displays the cropped image thumbnail on the WordPress Media Library.This change replaces the

mediumthumbnail with thethumbnailsize only for the JavaScript data used with the frontend Backbone models. It is a global change, but only within JavaScript.Closes #768
How to test the Change
Changelog Entry
Credits
Props @kmgalanakis , @dkotter
Checklist: