Skip to content

Releases: timber/timber

Release Candidate for version 1.3.0

12 Apr 03:40

Choose a tag to compare

Pre-release
  • 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 coverting TIFFs or other weird file types, instead return the passed value w/o modifying #1383

Fixes to comments; better pagination support

21 Mar 22:41

Choose a tag to compare

  • Uses Twig 2.0 for PHP 7 users who install w Composer
  • 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)

Fixed regression with default image sizing

22 Feb 20:25

Choose a tag to compare

Fix to S3 Image Handling

20 Feb 16:49

Choose a tag to compare

  • Fixed a potential XSS security issue
  • Fixed handling of images stored on S3

Fixes to image handling

09 Feb 15:46

Choose a tag to compare

1.2.0 fixes & refactoring

11 Jan 21:50

Choose a tag to compare

Comment Threads and WordPress 4.7

03 Jan 19:30

Choose a tag to compare

Comment Threads

You can now more easily fetch an manipulate threads of comments thanks to the fancy new CommentThread object! Why?

  • Adds depth info
  • Nests by default (thus, the change from 1.1.* to 1.2)
  • Supports future syntax features
Usage:

post.twig

<h1>{{ post.title }}</h1>
<article>{{ post.content }}</article>
<section class="comments">
{% for comment in post.comments %}
  {% include "comment.twig" %}
{% endfor %}

comment.twig

<div class="comment-{{ comment.id }} depth-{{ comment.depth }}">
  {{ comment.content }}
  <p class="who">{{ comment.author.name }}</p>
  <div class="replies">
    {% include "comment.twig" %}
  </div>
</div>

You can also do fun stuff when fetching comments like {% post.comments.order('DESC') %} or `{% post.comments.orderby('comment_author') %}

WordPress 4.7

The new version of WP introduced a bevy of small changes that broke a number of low-level Timber features. These were items caught by UnitTests (no reports of users seeing strange behavior), but out of an abundance of caution these were held until Timber 1.2 to reduce possibility of breaking live sites.

Twig deprecation fix

11 Dec 20:35

Choose a tag to compare

  • Fixed Twig issue with deprecation #1265 (thanks @codesman)!
  • Cleaned-up the warnings for WP.org users and disabled easy updates for major/milestone versions 331314d

Ordering and Querying fixes

07 Dec 17:12

Choose a tag to compare

  • Improved flexibility for public query_vars #1250 (thanks @xavivars)
  • Children should inehrit publish state #1255 (thanks @motia)
  • Pages are sorted by their menu order instead of publish order #1251 (thanks @forgandenny)
  • Fixes to object caching #1259

Co-Authors Plus, Yoast Improvements

23 Nov 15:15

Choose a tag to compare

  • Added support for Co-Authors Plus Guest Authors #1239 (thanks @motia)
  • Fix for Yoast SEO with multisite #1244 (thanks @alexandernanberg)
  • Fixes issues with basedir restrictions that arose in Timber 1.1.9 #1245