Releases: timber/timber
Delete sideloaded files
Correct array_filter fix
New Pagination Controls
WordPress VIP Compatibility
Changes for Theme Developers
- Adds new filter:
timber/allow_fs_writeto ensure compatibility with WordPress VIP and other hosts with filewrite restrictions. #2250 (thanks @mjangda)
Fixes and improvements
- Add a catch so that
{{ dump() }}when WP_DEBUG = FALSE doesn't cause a fatal error #2217, #2282 - Performance improvement for the deletion of transients #2281 (thanks @opengeekv2)
- Fix for "More" block issue with Gutenberg #2256
A fix for DELETEs
Changes for Theme Developers
Fixes and improvements
- Fixed an issue where an excessive amount of DELETEs could hit the DB #1834 #2243 (thanks @chads2000 @dennisjac)
- Fix an issue with blank user names #2232 (thanks @flip111)
Fix S3 URL isssue
Fixes and improvements
- Fix error with S3 URLs and resize filters #2213 (thanks @hoangnd25)
These are some patches
Fixes and improvements
- Fixed an issue where null results from
PostGetter::get_postscould trigger a fatal error #2199 (thanks @jhhazelaar) - Removed a useless and confusing error_log message when a
post_typeisn't found in a class map #2202 (thanks @gchtr) - Fixed a documentation issue that gave phpStorm a bad time with
query_post#2205 (thanks @mweimerskirch)
Fix content conflict
Fixes and improvements
- Fixed an issue where a custom field named "content" could conflict with
{{ post.content }} - Fixed an issue where
Timber/User::$idwas returned as a string instead of an integer (thanks @rubas)
Changes for Theme Developers
- Timber's data to Apache/Nginx error logs (via
error_log()) is now prefixed with[ Timber ]
Filter fix and some other stuff with date/time
Fixes and improvements
- {{ post.date }} and {{ post.time }} now use
date_i18nunder the hood instead ofmysql2date#2104 #2126 (thanks @palmiak) - WordPress 4.9.8 is the new min supported version.
Changes for Theme Developers
- We're now using minimum versions of Twig 1.41 and 2.10
The filter filter
Twig introduced a filter filter (you read that right, a filter named filter — like {{ sizes | filter(v => v > 38) }}. This wrecked havoc on our own pre-existing Timber filter filter {{ posts | filter({post_title:"Cheese", post_content:"Yum!"}, "AND") }}.
In #2124 we gave Twig's filter the preferred treatment. However, if the arguments look like you intend to use the old filter (which is a wrapper for WordPress's WP_List_Util class) we use what's there. Want to keep using the class Timber filter filter? Switch it to wp_list_filter as in {{ posts | wp_list_filter({post_title:"Cheese", post_content:"Yum!"}, "AND") }} (thanks @palmiak @gchtr @nlemoine @aj-adl @rubas @xdevelx and others)
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)