Skip to content

Releases: timber/timber

Fixes for Twig debug WSOD

19 Nov 19:23
Compare
Choose a tag to compare

Fix Composer test issues

20 Oct 15:24
5dd3cbb
Compare
Choose a tag to compare

Resolve #2099 which might cause issues with Composer downloads

Misc Bug Fixes, found_posts

18 Oct 01:07
Compare
Choose a tag to compare

Fixes and improvements

  • Fix resizing for images with UTF-8 characters in their filename #2072
  • Added tests to cover RTL languages and special characters in image file names #2072
  • Fixed MenuItem menu recursion #2071 #2083

Changes for Theme Developers

  • Added new found_posts property for Timber\PostQuery. Now you can check how many posts were found in a query. #2074

Stabilized to work with WPML

14 Sep 23:11
Compare
Choose a tag to compare

General Note

  • If you use WPML with Timber, please upgrade to WPML 4.2.8. The WPML team has removed their included Twig version which means no more conflicts!

Fixes and improvements

  • Fix to menu items getting incorrect classes in WPML and others #1974
  • Fixed issue with Timber not respecting comment order #1731 #2015

Changes for Theme Developers

  • Theme methods (theme.get and theme.display) for headers are now exposed by Timber\Theme #2051 (thanks @dtvn)

Patch MenuItem Change

17 Jun 00:52
Compare
Choose a tag to compare
  • Allows for a MenuItem's Menu to be unknown #2024 #2025

Upgrade of Twig, new filtering improvements/fixes

10 Jun 17:58
Compare
Choose a tag to compare

Important Note
If you use WPML, please do not upgrade to 1.10.* yet. Because WPML also uses Twig, there is a conflict with loading Twig versions. They will release an update soon to keep things in sync. Until then, please use version 1.9.2

Fixes and improvements

  • You can now skip the eager loading of meta vars through a filter #2014 (thanks @aj-adl @gchtr)
  • Use Twig 1.38 to prevent compatibility issues with WPML and other plug-ins
  • This restores the prior behavior before #1813 / 1.9.3 when using Timber::get_posts. This is now controllable by devs
  • Add support for non-cookied comment awaiting moderation message #1954 (thanks @codeclarified)
  • Avoids a potential WSOD when incorrectly specifying template filenames #1984 (thanks @aj-adl)
  • Fixes a bug introduced in #1813 that was watching for the query param of supress_filters (instead of the correct spelling: suppress_filters)
  • Fixes a bug where the last menu item received incorrect CSS classes #2009 #1974 (thanks @strategio)

Changes for Theme Developers

  • You can use WordPress's behavior of get_posts (versus WP_Query) via a filter. By default, Timber uses the behaviors of WP_Query in Timber's queries #1989 (thanks @palmiak)
  • If you run into problems with unknown Twig_SimpleFilter or unknown Twig_Filter classes, you can use Timber\Twig_Filter instead.
  • Fixed Timber::get_posts so that its default query parameters mirror WordPress's get_posts #1812 (thanks @bartvanraaij)
  • You can now more easily work with menu locations and filters #1959 #2018 (thanks @gchtr)

Hotfix for Timber::get_posts behavior

30 May 18:23
Compare
Choose a tag to compare

Fixes and improvements

  • Updated to most current version of Twig.
  • This restores the prior behavior before #1813 / 1.9.3 when using Timber::get_posts(). This is now controllable by devs.
  • Add support for non-cookied comment awaiting moderation message #1954 (thanks @codeclarified).
  • Avoids a potential WSOD when incorrectly specifying template filenames #1984 (thanks @aj-adl).

Changes for Theme Developers

  • If you run into problems with unknown Twig_SimpleFilter or unknown Twig_Filter classes, you can use Timber\Twig_Filter instead #1963.
  • You can use WordPress's behavior of get_posts() (versus WP_Query) via a filter. By default, Timber uses the behaviors of WP_Query in Timber’s queries #1989 (thanks @palmiak).
// Turn on WordPress’s behavior of get_posts when using Timber::get_posts()
add_filter( 'timber/get_posts/mirror_wp_get_posts', '__return_true' );

Fixes typo in suppress_filters

01 Apr 01:22
Compare
Choose a tag to compare

Fixes a bug introduced in #1813 that was watching for the query param of supress_filters (instead of the correct spelling: suppress_filters)

Match Timber::get_posts to WordPress's get_posts

28 Mar 02:01
Compare
Choose a tag to compare

Fixed Timber::get_posts so that its default query parameters mirror WordPress's get_posts #1812 #1813 (thanks @bartvanraaij)

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)