Create WordPress themes with beautiful OOP code and the Twig Template Engine
This release comes with compatibility for PHP 8.0 and 8.1. To support this, we updated the minimum required PHP version from 5.3 to 7.2.
(Please be aware that WordPress itself is still in beta support for PHP 8.0 and 8.1, which means it’s not completely completely compatible yet (see Trac tickets). You might see deprecation warnings for some functionality in WordPress.)
Full Changelog: https://github.com/timber/timber/compare/1.20.0...1.21.0
This is the first beta version of the long awaited Version 2 of Timber. We consider this beta feature-complete. We will concentrate on fixing bugs to be able to soon release a first release candidate.
You can try it out by following the Installation Guide. When installing Timber through Composer, you need to quire the 2.0.0-beta.1
version:
composer require timber/timber:2.0.0-beta.1
There are quite a few breaking changes in Version 2 of Timber. Refer to the Upgrade Guide for more information.
We’re happy if you want to test out the first Timber beta. In case you find errors, please open an issue (and label with 2.x
and bug
) or create a discussion in case you have questions.
We want to thank so so so many people for being a part of Timber and helping us achieve this milestone. We're so proud of the work and the evolution to a stable and widely-used part of so many developer's tools.
If you've been using the alpha versions, here's what's changed in this version of 1.0.0-beta.1
:
Timber\PostQuery
by @gchtr in https://github.com/timber/timber/pull/2613
Attachment::$caption
property in favor of Attachment::caption()
method by @gchtr in https://github.com/timber/timber/pull/2612
yoast/wp-test-utils
by @nlemoine in https://github.com/timber/timber/pull/2614
timber/menuitem/classmap
filter by @gchtr in https://github.com/timber/timber/pull/2618
Full Changelog: https://github.com/timber/timber/compare/2.0.0-alpha.5...2.0.0-beta.1
lint-composer
script by @nlemoine in https://github.com/timber/timber/pull/2594
Full Changelog: https://github.com/timber/timber/compare/2.0.0-alpha.5...2.0.0-alpha.6
null
instead of false
as return type in factories by @gchtr in https://github.com/timber/timber/pull/2566
Full Changelog: https://github.com/timber/timber/compare/2.0.0-alpha.4...2.0.0-alpha.5
Full Changelog: https://github.com/timber/timber/compare/1.19.2...1.20.0
Full Changelog: https://github.com/timber/timber/compare/1.19.1...1.19.2
thumbnail()
method return type by @titouanmathis in https://github.com/timber/timber/pull/2463
Full Changelog: https://github.com/timber/timber/compare/2.0.0-alpha.2...2.0.0-alpha.4
thumbnail()
method return type by @titouanmathis in https://github.com/timber/timber/pull/2463
Full Changelog: https://github.com/timber/timber/compare/1.19.0...1.19.1
= 1.19.0 =
Changes for Theme Developers
timber/loader/loader
filter #2324 (thanks @neojp)Fixes and improvements
get_the_date
and get_the_time
filters #2350 (thanks @shvlv)wp:more
tag works with noteaser
#2348 #2351 (thanks @jhhazelaar)home_url()
should be used instead of site_url()
#2356 #2357 (thanks @Levdbas)Timber::get_sites
returned the same locale for all sites #1908 #2369 (thanks @highbelt)We've been at it pretty hard getting this ready for 2.0. There are just a few issues and PRs remaining before this will become the default branch. Here's a GitHub view to compare what's new in this alpha:
https://github.com/timber/timber/compare/2.0.0-alpha.1...2.0.0-alpha.2