Skip to content

Releases: timber/timber

Transparent Letterboxing, misc. fixes

10 Oct 23:05

Choose a tag to compare

Fixes and improvements

  • Transparent PNGs now work with letterboxing #1554 (thanks @nlemoine)

Changes for Theme Developers

  • You can now interact with Terms in Twig the same as PHP (ex: {% set term = Term(34, "arts") %}). The second arg will default to a subclass of Timber\Term if it exists #1159 (@jarednova)
  • You can now get {{ theme.version }} to get the theme version! #1555 (thanks @herrschuessler)

Performance Wins!

19 Sep 01:34

Choose a tag to compare

Fixes and improvements

  • home_url value is now cached, performance win for polylang! #1507 (thanks @oxyc)
  • Post::$css_class is only fetched if requested #1522 (thanks @ruscon)
  • Stop loading a class object to test if it's a valid Timber\Post it for PostGetter #1522 (thanks @ruscon)
  • Improved flexibility of PostCollection to be filterable #1544 (thanks @gchtr)
  • More test coverage

Changes for Theme Developers

  • None! But the above fixes have significant changes in the code which necessitated the ".x" version jump

Quick fixes for 1.4.*

10 Aug 05:49

Choose a tag to compare

Fixes and improvements

Gif fixes; loader improvements

08 Aug 14:26

Choose a tag to compare

Fixes and Improvements

  • Improve GIF resize performance #1495 (thanks @ahallais)
  • Fix for get_host which could generate an unnecessary warning #1490 (thanks @ahallais)

Changes for Theme Developers

  • Improve loader performance and logic #1476 #1489 #1491 (thanks @heino). This introduces potential changes if you were loading templates in a non-standard way and with multiple sources (ex: from a theme and plugin directory). Non-existing templates are no longer passed all the way to Twig’s render(), which currently generates an exception.

Twig 2.0 / 1.0 Compatibility Fix

19 Jul 00:23

Choose a tag to compare

  • Fix for Twig 2.0 compatibility issue with functions in Twig #1464 (thanks @luism-s)

HTTPS Fix

30 Jun 23:43

Choose a tag to compare

  • Resolves an issue with images from HTTPs servers #1444 #1446

Roots, WPML and HTTPs fixes

12 Jun 21:57

Choose a tag to compare

  • Fix for image bug with WPML and Roots/Bedrock active #1445 (thanks @njbarrett)
  • Fix for some HTTPs issues #1448 (thanks @baldursson)
  • Improved docs! #1441 (thanks @gchtr)
  • Allow ACF to convert single WP_Post objects to Timber Posts #1439 (thanks @luism-s)

Bug fixes for 1.3.0

31 May 12:03

Choose a tag to compare

Official 1.3.0 Release

25 Apr 20:42

Choose a tag to compare

  • Default $context object now returns a PostQuery for $context['posts'] this is cool because you can use {{ posts.pagination }} in your Twig templates without any further PHP work (thanks @lggorman)
  • Timber\Images with PDFs and other content types now return the file instead of null # (thanks @hoandang)
  • Timber\Comments now support different comment types #1364 (thanks @yantei)
  • Timber\Comments {{ comment.content }} now returns processed comment with <p> tags
  • Fix for HTTP error when uploading media files in Windows #1346 (thanks Matias Griese)
  • Fix for image resizing on alternative WP setups (thanks @gillesgoetsch)
  • Exposing a function to global Twig scope through Timber\FunctionWrapper is deprecated, the prefered method to do this is through a Twig template like {{ function('my_cool_function', 'my_argument') }} (thanks @gchtr)
  • Fixed issues with use of Twig 2.0 (#1370)
  • Fixed up some things with Timber/Archives and getting post_count #1376
  • Don't let Timber fail when converting TIFFs or other weird file types, instead return the passed value w/o modifying #1383
  • Updated FunctionWrapper with appropriate warnings and Twig 2.0 compat (thank you thank you @gchtr)
  • Misc fixes to documentation

Release Candidate for version 1.3.0 (part 2)

24 Apr 17:11

Choose a tag to compare

  • Updated FunctionWrapper with appropriate warnings and Twig 2.0 compat (thank you thank you @gchtr)
  • Misc fixes to documentation