Releases: timber/timber
Fixes for Twig debug WSOD
- Fix issue with debug on/off in certain installs #2084 (thanks @kmonahan)
- Fix link to admin pages #2112 (thanks @Beee4life)
Fix Composer test issues
Resolve #2099 which might cause issues with Composer downloads
Misc Bug Fixes, found_posts
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 forTimber\PostQuery
. Now you can check how many posts were found in a query. #2074
Stabilized to work with WPML
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
Patch MenuItem Change
Upgrade of Twig, new filtering improvements/fixes
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
(versusWP_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 unknownTwig_Filter
classes, you can useTimber\Twig_Filter
instead. - Fixed
Timber::get_posts
so that its default query parameters mirror WordPress'sget_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
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 unknownTwig_Filter
classes, you can useTimber\Twig_Filter
instead #1963. - You can use WordPress's behavior of
get_posts()
(versusWP_Query
) via a filter. By default, Timber uses the behaviors ofWP_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
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
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()
Changes for Theme Developers
- You can use
Timber::context()
as an alias forTimber::get_context()
. It's prettier, it also will prep you for Timber 2.0 whereTimber::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)