Skip to content

v2.0.3

Choose a tag to compare

@cjg89 cjg89 released this 05 Dec 15:49
· 53 commits to master since this release

Enhancements

  • Added new $size attr to UCF_Post_List_Common::get_image_or_fallback, which allows you to specify the image size to retrieve. This defaults to large to accommodate for sites that depend on the function previously (incorrectly) returning full-sized images, while still avoiding returning huge images at least.
  • Added UCF_Post_List_Common::get_image_srcset, which returns a srcset attribute to use for post list layouts that support thumbnails. The srcset generated will still depend on the uploaded image size not being enormous, but should still help reduce requested filesizes overall, particularly for mobile devices.
  • Updated the card layout to use a srcset attribute.

Other

  • Fixed typo for tax_TAXSLUG__field param in readme