Releases: mindkomm/timmy
Releases · mindkomm/timmy
0.14.1
- Added bailout in
image_downsize
filter when no image size could be found. - Updated the order of the image attributes when using
get_timber_image_responsive()
. - Fixed bug when
full
image size couldn’t be found when usingget_timber_image()
.
Documentation
- Added docs section about WooCommerce.
- Fixed name of inexistent setting in example in the docs.
Development
- Added testing setup to be able to test Timmy functionality and make it more robust.
0.14.0
- Introduced new function
Helper::get_attribute_html()
that is used to turn an associative array of HTML attributes into a string. Internally, the handling of a list of HTML attributes was improved by introducing attribute arrays that get passed around and will be turned into HTML by this new function. - Introduced new function
get_timber_image_attributes_responsive()
that can be used to get an associative array of default HTML attributes for a responsive Timber image. - Introduced new function
get_timber_image_texts()
that is used to retrieve alt and title attributes for an image. - Deprecated the
get_image_attr_html()
function in favor ofHelper::get_attribute_html()
. - Deprecated the
get_timber_image_attr()
function in favor ofget_timber_image_texts()
.
Improved Responsive Content Images feature
- Introduced arguments array for
Responsive_Content_Images
class with new optionmap_sizes
, that allows the usage of custom image sizes for image sizes used in the content. - Introduced new filter
timmy/responsive_content_image/attributes
to filter image attributes used for a responsive content image. - Introduced new filter
timmy/responsive_content_image
to filter the image HTML markup for a responsive content image. - Added filter that automatically removes any width styles from WordPress-generated
<figure>
tags.
Meta data for images
When an image is uploaded, Timmy now generates image metadata that is saved in the database. This improves compatibility with third party plugins that sometimes check this metadata for various reasons. For example, Yoast SEO needs this data to generate the markup for OG image tags. For this to work, you need to define a large
image source in your image config.
To generate this data for existing images, you’d have to run Regenerate Thumbnails.
Documentation update
The README file was quite long, probably a little too long. The big part of the documentation can now be found in separate files in the docs/
folder. Use the Documentation Section in the README for an entry point.
0.14.0-rc.2
0.14.0-rc.1
v0.13.6
v0.13.5
This release fixes some regressions bugs.
- Changed how the bug that was fixed in 0.13.4 is handled. Solved it differently (d03849f), so that the changes made for the
timmy/resize/ignore
filter in 0.13.4 could be reversed. Check the filter section in the README for how thetimmy/resize/ignore
filter works. Sorry! - Fixed a whitespace bug in
get_timber_image_responsive_src()
that was introduced in 0.13.3 (a17aa2e).
v0.13.4
- Fixed a bug when
timmy/resize/ignore
filter was ignored in the backend when attachments were queried. The parameters passed totimmy/resize/ignore
filter changed. Instead of the$attachment
parameter, there’s now a$mime_type
parameter. The order for the other parameters changed as well. Check the filter section in the README.
v0.13.3 – Lazy loading
v0.13.2
v0.13.1 – Update to oversize
- Fixed behavior of
oversize
parameter. Prior to this version, images would grow bigger than their original size even ifoversize['allow']
was set tofalse
. - Extended the
oversize
shortcut to also set thestyle_attr
parameter. This means that you can useoversize => true
oroversize => false
to set all parameters directly. This change only has implications for you if you’ve usedoversize => false
in the past. - Added new filter
timmy\oversize
to set the default values for the oversize parameter. Read more about it in the Filters section of the README.