kylereicks / picturefill.js.wp

A WordPress plugin to use Picturefill.js for image loading.
106 stars 10 forks source link

Fixes Issue 54 #64

Open tychay opened 9 years ago

tychay commented 9 years ago

Looks like WordPress core has a bug where get_image_tag() returns a different class than wp_get_attachment_image(). This shouldn't be a filter though, but patched in the plugin itself given the core spits it out.

Note to upstream: Without this patch, post thumbnails might not get properly sized (not sure they'll get properly sized post patch as I don't use this plugin yet). Even if they do get properly sized some parts of the code that are wasteful will get exercised to determine the srcset mappings.