Pre-release notes
https://getkirby.com/releases/5
✨ Enhancements
- Add root for plugin licenses (
$kirby→root('licenses')
) (Thanks @nilshoerrmann) #6767 - New protected
IsFile::assetFactory()
method to create a new asset instance based on the file type, but without adding it to the property cache. This enhancement is related to the bug fix for #7289
🐛 Bug fixes
F::type()
does no longer interpret.tmp
as valid file extension, but uses mime detection to get the correct type.
🐛 Fixed regressions
File::create()
does no longer throw a missing extension error #7289File::create()
does no longer remove the content file of an existing file if a duplicate error is thrown.- Use
WeakMap
forVersionCache
to avoid cache collisions due to a behavior inspl_object_hash
that will sometimes reuse cache ids for new instances. #7302