Releases: timber/timber
Releases · timber/timber
Transparent Letterboxing, misc. fixes
Fixes and improvements
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!
Fixes and improvements
home_urlvalue is now cached, performance win for polylang! #1507 (thanks @oxyc)Post::$css_classis only fetched if requested #1522 (thanks @ruscon)- Stop loading a class object to test if it's a valid
Timber\Postit forPostGetter#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.*
Fixes and improvements
- Fix for WPML URLs in some situations #1513 (thanks @ChrisManganaro)
- Fix for PHP 5.5 issue with some URLs #1518 (thanks @danFWD)
Gif fixes; loader improvements
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
- Fix for Twig 2.0 compatibility issue with functions in Twig #1464 (thanks @luism-s)
HTTPS Fix
Roots, WPML and HTTPs fixes
- 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
- Fix for Timber::get_widgets with Twig 2.0 #1422 (thanks @gchtr)
- Fix for WPML Menus #1414 (thanks @mikeyb31)
- Fix for WPCLI integration #1429 #1430 (thanks @vyarmolenko)
- Fix for image format processing #1421 (thanks @mgussekloo)
Official 1.3.0 Release
- 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
FunctionWrapperwith 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)
- Updated
FunctionWrapperwith appropriate warnings and Twig 2.0 compat (thank you thank you @gchtr) - Misc fixes to documentation