This is the first Release Candidate of the new Timber 2.0 version. Please test this version thoroughly. In case you find errors, please open an issue. In case you have questions, create a discussion.
If you want to stay updated on the next steps, subscribe to Roadmap for Timber 2.0.
You can try out the next Timber version by following the Installation Guide. When installing Timber through Composer, you need to require the 2.0.0-rc.1
version:
composer require timber/timber:2.0.0-rc.1
What’s changed
Here’s what’s changed since the last 2.0.0-beta.2 release.
Changes
Removals
- Remove audio & video methods from
Post
by @nlemoine in #2750 - Remove unused private property by @nlemoine in #2751
- Remove unused param from
Timber\Term::build()
by @gchtr in #2754
Bug fixes
- Fix
PostFactory::is_image
incorrectly usingwp_check_filetype
by @stayallive in #2730 - Fix custom field test by @nlemoine in #2749
- Fix PHPStan issues on level 2 by @gchtr in #2668
- Fix a bug when
the_post
hook runs twice on each post in a loop by @gchtr in #2756 - Fix a bug when
|time_ago
didn’t consider timezones correctly by @gchtr in #2758 - Fix URLHelper methods
is_local
andis_external
by @mcaskill in #2767 - Fix implicit conversion from float to int by @gchtr in #2775
- Add check to image create functions by @Levdbas in #2780
Documentation
- Add @api tag to Helper by @Levdbas in #2746
- Fix PHPDoc typo by @LogicEveryWhere in #2709
- Update property and method docblocks in Theme.php. by @Levdbas in #2744
- Fix some small issues in Getting Started docs by @gchtr in #2761
- Cleanup todo in code by @gchtr in #2757
- Link checker report fixes by @Levdbas in #2747
Testing and tools
- Fix MariaDB in automatic tests by @gchtr in #2776
- Fix some Coding Standard issues by @gchtr in #2779
- Fix skipped tests by @gchtr in #2760
- Coding Standards: improve imports by @nlemoine in #2700
- Fix: phpstan issues & use fully qualified imports by @nlemoine in #2783
New Contributors
- @stayallive made their first contribution in #2730
- @LogicEveryWhere made their first contribution in #2709
Full Changelog: 2.0.0-beta.2...2.0.0-rc.1
Become a sponsor
Do you love using Timber for your projects? Consider supporting us by becoming a sponsor. Your sponsorship helps us maintain & improve Timber for everyone! 💚🌲 Join the Timber family today.