Deprecated
Core
- Files in a plugin's
assets
directory are now always assumed to be public, independent of their file extension. If your plugin needs to store other files in the assets directory, please use the newassets
extension to explicitly define the public assets. - Passing a single space as value to
Xml::attr()
(with the intention to generate an attribute with an empty value) has been deprecated in favor of passing an empty string. Kirby\Cms\Model
: UseKirby\Cms\ModelWithContent
insteadKirby\Email\Email::clone()
andKirby\Email\Body::clone()
Page::isReadable()
: UsePage::isAccessible()
instead- The name
query
should not be used for custom API endpoints anymore, it will be used for the Kirby QL (KQL) plugin/core implementation - Internal
$model->contentFile()
,$model->contentFiles()
,$model->contentFileDirectory()
,$model->contentFileExtension()
and$model->contentFileName()
methods have been deprecated and will be removed in v5.
Panel
- Custom icons using a 16x16 viewbox have been deprecated. In an upcoming version, Kirby will only support custom icons with a 24x24 viewbox by default. If you want to continue using icons with a different viewport, please wrap them in an
<svg>
element with the correspondingviewBox
attribute. - Icons
circle-outline
,heart-outline
andstar-outline
: Usecircle
,heart
andstar
instead this.$events
: Usethis.$panel.events
insteadthis.$panel.events.$on
: Usethis.$panel.events.on
insteadthis.$panel.events.$off
: Usethis.$panel.events.off
insteadthis.$panel.events.$emit
: Usethis.$panel.events.emit
insteadthis.$store.dispatch("isLoading")
: Usethis.$panel.isLoading
insteadthis.$translation
: Usethis.$panel.translation
insteadthis.$store.dispatch("dialog")
: Usethis.$panel.dialog.open
andthis.$panel.dialog.close
insteadthis.$store.dispatch("drag", drag)
: Usethis.$panel.drag = drag
insteadk-dropdown
: Usek-dropdown-content
as standalone insteadk-calendar
was renamed tok-calendar-input
;k-calendar
is still available but only as deprecated alias.