Skip to content

Releases: timber/timber

Delete sideloaded files

11 Oct 15:09

Choose a tag to compare

  • Fixes an issue where images loaded from another domain/site weren't properly deleted from the tmp directory #2216 (thanks @oxyc)

Correct array_filter fix

26 Aug 00:21

Choose a tag to compare

Fixes and improvements

  • Corrects an issue where #2305 tested for arrays but not other Iterables (like Timber\PostCollections) #2314 (thanks @nlemoine)

New Pagination Controls

16 Aug 23:50

Choose a tag to compare

Changes for Theme Developers

  • Improves control over pagination stops #2302 (thanks @IJMacD)

Fixes and improvements

  • Fixes an error with array_filter and later versions of Twig #2305

WordPress VIP Compatibility

19 Jul 17:23

Choose a tag to compare

Changes for Theme Developers

  • Adds new filter: timber/allow_fs_write to ensure compatibility with WordPress VIP and other hosts with filewrite restrictions. #2250 (thanks @mjangda)

Fixes and improvements

  • Add a catch so that {{ dump() }} when WP_DEBUG = FALSE doesn't cause a fatal error #2217, #2282
  • Performance improvement for the deletion of transients #2281 (thanks @opengeekv2)
  • Fix for "More" block issue with Gutenberg #2256

A fix for DELETEs

18 May 19:44

Choose a tag to compare

Changes for Theme Developers

Fixes and improvements

Fix S3 URL isssue

24 Mar 17:39

Choose a tag to compare

Fixes and improvements

These are some patches

27 Feb 02:08

Choose a tag to compare

Fixes and improvements

  • Fixed an issue where null results from PostGetter::get_posts could trigger a fatal error #2199 (thanks @jhhazelaar)
  • Removed a useless and confusing error_log message when a post_type isn't found in a class map #2202 (thanks @gchtr)
  • Fixed a documentation issue that gave phpStorm a bad time with query_post #2205 (thanks @mweimerskirch)

Fix content conflict

10 Feb 21:19

Choose a tag to compare

Fixes and improvements

  • Fixed an issue where a custom field named "content" could conflict with {{ post.content }}
  • Fixed an issue where Timber/User::$id was returned as a string instead of an integer (thanks @rubas)

Changes for Theme Developers

  • Timber's data to Apache/Nginx error logs (via error_log()) is now prefixed with [ Timber ]

Filter fix and some other stuff with date/time

07 Jan 03:19

Choose a tag to compare

Fixes and improvements

  • {{ post.date }} and {{ post.time }} now use date_i18n under the hood instead of mysql2date #2104 #2126 (thanks @palmiak)
  • WordPress 4.9.8 is the new min supported version.

Changes for Theme Developers

  • We're now using minimum versions of Twig 1.41 and 2.10

The filter filter

Twig introduced a filter filter (you read that right, a filter named filter — like {{ sizes | filter(v => v > 38) }}. This wrecked havoc on our own pre-existing Timber filter filter {{ posts | filter({post_title:"Cheese", post_content:"Yum!"}, "AND") }}.

In #2124 we gave Twig's filter the preferred treatment. However, if the arguments look like you intend to use the old filter (which is a wrapper for WordPress's WP_List_Util class) we use what's there. Want to keep using the class Timber filter filter? Switch it to wp_list_filter as in {{ posts | wp_list_filter({post_title:"Cheese", post_content:"Yum!"}, "AND") }} (thanks @palmiak @gchtr @nlemoine @aj-adl @rubas @xdevelx and others)

Fixes for Twig debug WSOD

19 Nov 19:23

Choose a tag to compare