Skip to content

Releases: timber/timber

Bump versions for Routes and Timber::context()

11 Mar 19:22
Compare
Choose a tag to compare

Changes for Theme Developers

  • You can use Timber::context() as an alias for Timber::get_context(). It's prettier, it also will prep you for Timber 2.0 where Timber::get_context() is deprecated #1938

Fixes and improvements

  • Integration of newest version of Upstatement/Routes which uses (newest) version 1.2.0 of AltoRouter #1946 (thanks @seanstickle)

Fix for User::avatar

03 Mar 18:27
Compare
Choose a tag to compare

Changes for Theme Developers

  • You can now pass params to {{ user.avatar }} such as {{ user.avatar({size: 128}) }} #1730 (thanks @palmiak)

Fixes and improvements

  • Fix for PHP 7.3 compatibility #1915 (thanks @palmiak)
  • Fix for URLHelper::is_external for URLs without protocol #1924 (thanks @hacknug)

Author Roles & Permissions

14 Feb 16:27
Compare
Choose a tag to compare

Changes for Theme Developers

  • Adds support for roles on the user object. Example: {{ post.author.roles }} which returns an array of roles #1898 (thanks @palmiak)
  • Adds support for capabilities on the user object. Example: {{post.author.can("moderate_comments")}} which returns true or false #1898 (thanks @palmiak)

Fixes and improvements

  • Fix an error with handling args for nav menus #1865 (thanks @palmiak)
  • Allowed tags won't be stripped when automatically generating an excerpt #1886 (thanks @davefx)
  • Fix for JPG/WEBP conversion for some older PHP installs #1854

WordPress & PHP Support

Timber now requires PHP 5.6 or greater. While Timber may work on PHP 5.5 and older versions; support will no longer be maintained in future versions.

Resolve pagination escaping issue

20 Dec 22:29
Compare
Choose a tag to compare

Fixes and improvements
This update is recommended for all sites/users of 1.8.*

  • Resolve potential pagination issue #1642 (thanks @gchtr).

Hot fix for PHP 5.5 <

22 Nov 13:58
Compare
Choose a tag to compare

Refactored something in Post.php that caused an error in PHP 5.5 and 5.4 #1850

Responsive Image attributes and other fixes

20 Nov 02:42
Compare
Choose a tag to compare

Changes for Theme Developers

  • You can now change the query parameters that are used when getting a post’s terms through $post->terms(). #1802
  • New attributes for responsive images post.thumbnail.srcset and post.thumbnail.sizes #1819 (thanks @maxxwv)

Fixes and improvements

  • Using WordPress's wp_check_filetype_and_ext for the mime_type mess #1843 (thanks @gchtr)
  • Fixed how some previewed data (when looking at an unsaved post from the admin) is handled so that parenting relationships match what happens when published #1752
  • Timber\Menu now respects modifications sent through WP's wp_nav_menu_objects filter #1814 (thanks @pascalknecht)

Fix for mime_type detection in some PHP installs

30 Sep 14:51
Compare
Choose a tag to compare
  • Fixed how mime_type was figured out in some PHP installs #1798

WebP support

17 Sep 17:05
Compare
Choose a tag to compare

Changes for Theme Developers

Fixes and improvements

ACF Bug Fix

21 May 17:36
Compare
Choose a tag to compare

Fixes and improvements

  • Fixes issues previewing custom fields with ACF #1712
  • Fixes some edge cases with Menu Item classes #1709
  • Improved efficiency of Post class instantiation #1660

Okay, one more

11 Feb 03:11
dcc32aa
Compare
Choose a tag to compare

Fixes and improvements

  • Fixed some issues with animated gif resizing when Imagick isn't available #1653
  • Fixed incorrect reporting of depth level in some comments #1648
  • Fixed issues with preview permissions #1607
  • Fixed issue with image resize in some WPML setups #1625
  • Fixes compatability issues with Twig 2.4 (and later) #1641