CraftCMS v4.0.4 Release Notes
Release Date: 2022-06-03 // almost 2 years ago-
➕ Added
- ➕ Added support for querying for users with a
credentialed
status. - ➕ Added
craft\elements\db\UserQuery::STATUS_CREDENTIALED
. - ➕ Added
craft\errors\FieldNotFoundException
. - ➕ Added
craft\helpers\Html::encodeSpaces()
. - ➕ Added
craft\web\twig\variables\Cp::getRequestedSite()
. (#11082)
🔄 Changed
temp
is now a reserved volume handle.- 👌 Improved the performance of field layout designers. (#11298)
- All control panel pages now have a
site--<siteHandle>
class name on the<body>
, based on the currently-selected site. (#11303) - ⚠ Warnings are no longer logged when instantiating a field layout that references a deleted custom field. (#11333)
- Read/write splitting is now disabled for all console requests.
- ⏪ The
db/restore
command now prompts to clear data caches after the import is complete. (#11327) - Entry queries no longer factor in seconds when looking for currently-live entries, without excluding entries that were published in the past minute. (#5389)
craft\elements\Asset::getUrl()
now encodes any spaces in the URL as%20
entities.
🛠 Fixed
- 🛠 Fixed a bug where it wasn’t possible to disable all table columns for an element source. (#11291)
- 🛠 Fixed a bug where the Assets index page wasn’t allowing any bulk actions for assets in the temporary volume. (#11293)
- 🛠 Fixed a bug where PHP errors thrown while rendering a template weren’t being handled properly. (#11108)
- 🛠 Fixed a bug where site status labels were inconsistent on element edit pages. (#11307)
- 🛠 Fixed a bug where addresses’ County fields were mislablled. (#11314)
- 🛠 Fixed a bug where the control panel’s login form wasn’t handling errors properly. (#11319)
- 🛠 Fixed a bug where it wasn’t possible to use a
{% redirect %}
tag in an error template. (#11336) - 🛠 Fixed an error that occurred when saving an entry via a GraphQL mutation. (#11312)
- 🛠 Fixed a bug where all web requests were getting no-cache headers. (#11346)
- 🛠 Fixed a bug where user caches weren’t getting invalidated when users were changed to a pending or inactive state.
- 🛠 Fixed a bug where querying for users with an
active
status was returning suspended users. (#11370) - 🛠 Fixed a bug where it wasn’t possible to drag assets within Assets fields by their thumbnails. (#11364)
- 🛠 Fixed a bug where asset thumbnails weren’t loading if their filename contained a space. (#11350)
- 🛠 Fixed a bug where
craft\services\AssetIndexer::indexFile()
wasn’t removing the filename from the file path when setting the directory on the listing. (#11365) - 🛠 Fixed a bug where links within custom field instructions were getting mangled. (#11377)
- 🛠 Fixed a bug where project config paths that contained slashes weren’t getting handled properly. (#10774)
- 🛠 Fixed a bug where the Login page had a tab-focusable “Skip to content” button. (#11375)
- ➕ Added support for querying for users with a