Skip to content

Releases: craftcms/cms

5.5.1.1

19 Nov 02:13
5.5.1.1
2233b27
Compare
Choose a tag to compare

5.5.1

19 Nov 00:36
5.5.1
b37fe12
Compare
Choose a tag to compare
  • The entry-types/merge command can now be run non-interactively. (#16135)
  • Fixed a JavaScript error that could occur on element edit pages. (#16055)
  • Fixed a Twig deprecation error. (#16107)
  • Fixed a bug where craft\services\Structures::fillGapsInElements() wasn’t working properly if the elements weren’t passed in hierarchical order. (#16085)
  • Fixed a bug where craft\helpers\Console::table() wasn’t handling multi-byte characters and ANSI-formatted strings properly.
  • Fixed a bug where entries could appear to retain old field values when switching entry types, even if the new type’s fields weret’t compatible with the original type’s fields. (#16056)
  • Fixed a bug where Link field query params weren’t working for elements that hadn’t been saved since updating to Craft 5.5.0+. (#16113)
  • Fixed a bug where Live Preview wasn’t reloading after reordering nested entries or addresses. (#16122)
  • Fixed a JavaScript error that could occur when reordering structured elements within an embedded element index. (#16103)
  • Fixed a bug where changes to nested entries/addresses in card view were getting published immediately on save, if the parent element was a draft.
  • Fixed a bug where element cards could bleed out of their containers. (#16112)
  • Fixed a bug where nested entries could get deleted when restoring revisions. (#16116)
  • Fixed a bug where reordering nested addresses or entries would cause any provisional drafts to be fully created. (#16094)
  • Fixed a PHP error that could occur on element indexes. (craftcms/commerce#3774)
  • Fixed a bug where an existing Single section entry could be deleted when the section’s Entry Types setting changed. (#16102)
  • Fixed a bug where Single section entries’ content could be lost after running the entry-types/merge command. (#16102)
  • Fixed a bug where Single section entries could be duplicated after running the entry-types/merge command. (#16087, #16102)
  • Fixed an RCE vulnerability.

4.13.1.1

19 Nov 02:11
4.13.1.1
2c91772
Compare
Choose a tag to compare

4.13.1

19 Nov 00:33
4.13.1
89655c1
Compare
Choose a tag to compare
  • Fixed a JavaScript error that could occur on element edit pages. (#16055)
  • Fixed a Twig deprecation error. (#16107)
  • Fixed a bug where craft\services\Structures::fillGapsInElements() wasn’t working properly if the elements weren’t passed in hierarchical order. (#16085)
  • Fixed an RCE vulnerability.

5.5.0.1

13 Nov 14:38
5.5.0.1
5e24a0b
Compare
Choose a tag to compare
  • Fixed an error that prevented custom fields from loading on the Settings → Fields.

5.5.0

12 Nov 17:15
5.5.0
b637df4
Compare
Choose a tag to compare

Content Management

  • When saving a nested element within a Matrix/Addresses field in card view, the changes are now saved to a draft of the owner element, rather than published immediately. (#16002)
  • Nested element cards now show status indicators if they are new or contain unpublished changes. (#16002)
  • Improved the styling of element cards with thumbnails. (#15692, #15673)
  • Elements within element selection inputs now have “Replace” actions.
  • Entry types listed within entry indexes now show their icon and color. (#15922)
  • Address index tables can now include “Country” columns.
  • Action button cells within editable tables are now center-aligned vertically.
  • Dropdown cells within editable tables are no longer center-aligned. (#15742)
  • Link fields marked as translatable now swap the selected element with the localized version when their value is getting propagated to a new site for a freshly-created element. (#15821)
  • Pressing Return when an inline-editable field is focused now submits the inline form. (Previously Ctrl/Command had to be pressed as well.) (#15841)
  • Improved the styling of element edit page headers, for elements with long titles. (#16001)
  • It’s now possible to preview audio and video assets from Edit Asset screens. (#16021)
  • Sidebar visibility states are now stored in a browser cookie, so they are retained between page/slideout loads. (#16025, #15982)
  • “Related To” condition rules now show the site menu in element selector modals. (#16036)

Accessibility

  • Improved the control panel for screen readers. (#15665)
  • Improved keyboard control. (#15665)
  • Improved the color contrast of required field indicators. (#15665)
  • Improved the accessibility of text inputs for screen readers.
  • It’s now possible to move an image’s focal point without dragging it. (#15904)
  • Improved field status indicators for screen readers. (#16081)

Administration

  • Added the “Range” field type. (#15972)
  • Added the “Allow custom options” setting to Checkboxes and Radio Buttons fields.
  • Added the “Show the ‘Label’ field” and “Show the ‘Open in a new tab’ field” settings to Link fields. (#15983)
  • Link fields’ Allowed Link Types settings are now sortable. (#15963)
  • All relation fields can now be selected as field layouts’ thumbnail providers. (#15651)
  • It’s now possible to include element attributes in card views, alongside custom fields, via new “Card Attributes” configurators. (#15283)
  • Added the “Markdown” field layout UI element type. (#15674, #15664)
  • Added the “Language” element condition rule. (#15952)
  • The Sections index table can now be sorted by Name, Handle, and Type. (#15936)
  • Sections are no longer required to have unique names. (#9829)
  • Customize Sources modals now display native sources’ handles, when known.
  • Removed the “Show the Title field” entry type setting. The “Title” element can now be removed from the field layout instead. (#15942)
  • Entry types can now specify a Default Title Format, which will be used even if the Title field is included in the field layout, to generate a default Title value if the field is blank. (#15942)
  • It’s now possible to control whether entry types’ Title fields are required. (#15942)
  • Added the “Step Size” Number field setting.
  • icon is now a reserved field handle. (#16077)
  • Added the “Default View Mode” element source setting. (#15824)
  • User impersonation now requires an elevated session. (#16052)
  • Elevated session prompts now authenticate against the original user, when impersonating a user. (#16052)
  • Added several new icons.
  • Added pc/* commands as an alias of project-config/*.
  • Added the resave/all command.
  • Added the users/remove-2fa command. (#16053)
  • Added the --except, --minor-only, and --patch-only options to the update command. (#15829)
  • Added the --with-fields option to all native resave/* commands.
  • The fields/merge and fields/auto-merge commands now prompt to resave elements that include relational fields before merging them, and provide a CLI command that should be run on other environments before the changes are deployed to them. (#15869)

Development

  • Added the encodeUrl() Twig function. (#15838)
  • {% cache %} tags now support setting the duration number to an expression. (#15970)
  • Added support for passing aliased field handles into element queries’ select()/addSelect() methods. (#15827)
  • Added support for appending subpaths to environment variable names in environmental settings (e.g. $PRIMARY_SITE_URL/uploads).

Extensibility

  • Added craft\base\Element::EVENT_REGISTER_CARD_ATTRIBUTES.
  • Added craft\base\Element::EVENT_REGISTER_DEFAULT_CARD_ATTRIBUTES.
  • Added craft\base\Element::defineCardAttributes().
  • Added craft\base\Element::defineDefaultCardAttributes().
  • Added craft\base\ElementInterface::attributePreviewHtml().
  • Added craft\base\ElementInterface::cardAttributes().
  • Added craft\base\ElementInterface::defaultCardAttributes().
  • Added craft\base\ElementInterface::indexViewModes().
  • Added craft\base\NestedElementTrait::saveOwnership(). (#15894)
  • Added craft\base\PreviewableFieldInterface::previewPlaceholderHtml().
  • Added craft\base\RequestTrait::getIsWebRequest(). (#15690)
  • Added craft\base\conditions\BaseElementSelectConditionRule::elementSelectConfig().
  • Added craft\console\Controller::output().
  • Added craft\console\controllers\ResaveController::hasTheFields().
  • Added craft\elements\db\NestedElementQueryTrait. (#15894)
  • Added craft\events\ApplyFieldSaveEvent. (#15872)
  • Added craft\events\DefineAddressCountriesEvent. (#15711)
  • Added craft\events\RegisterElementCardAttributesEvent.
  • Added craft\events\RegisterElementDefaultCardAttributesEvent.
  • Added craft\fieldlayoutelements\Template::$templateMode. (#15932)
  • Added craft\fields\data\LinkData::$target.
  • Added craft\fields\data\LinkData::setLabel().
  • Added craft\filters\BasicHttpAuthLogin. (#15720)
  • Added craft\filters\BasicHttpAuthStatic. (#15720)
  • Added craft\filters\ConditionalFilterTrait. (#15948)
  • Added craft\filters\UtilityAccess.
  • Added craft\helpers\Console::$outputCount.
  • Added craft\helpers\Console::$prependNewline.
  • Added craft\helpers\Console::indent().
  • Added craft\helpers\Console::indentStr().
  • Added craft\helpers\Console::outdent().
  • Added craft\helpers\Cp::cardPreviewHtml().
  • Added craft\helpers\Cp::cardViewDesignerHtml().
  • Added craft\helpers\Cp::rangeFieldHtml(). (#15972)
  • Added craft\helpers\Cp::rangeHtml(). (#15972)
  • Added craft\helpers\ElementHelper::linkAttributeHtml().
  • Added craft\helpers\ElementHelper::uriAttributeHtml().
  • Added craft\helpers\Session::addFlash().
  • Added craft\helpers\Session::getAllFlashes().
  • Added craft\helpers\Session::getFlash().
  • Added craft\helpers\Session::hasFlash().
  • Added craft\helpers\Session::removeAllFlashes().
  • Added craft\helpers\Session::removeFlash().
  • Added craft\helpers\StringHelper::firstLine().
  • Added craft\helpers\UrlHelper::encodeUrl(). (#15838)
  • Added craft\log\MonologTarget::getAllowLineBreaks().
  • Added craft\log\MonologTarget::getFormatter().
  • Added craft\log\MonologTarget::getLevel().
  • Added craft\log\MonologTarget::getMaxFiles().
  • Added craft\log\MonologTarget::getName().
  • Added craft\log\MonologTarget::getProcessor().
  • Added craft\log\MonologTarget::getUseMicrosecondTimestamps().
  • Added `craft\mo...
Read more

4.13.0

12 Nov 17:02
4.13.0
a69fb94
Compare
Choose a tag to compare

Administration

  • Added the “Language” element condition rule. (#15952)
  • Added pc/* commands as an alias of project-config/*.
  • Added the --except, --minor-only, and --patch-only options to the update command. (#15829)

Development

  • Added the encodeUrl() Twig function. (#15838)
  • Added support for passing aliased field handles into element queries’ select()/addSelect() methods. (#15827)
  • Added support for appending subpaths to environment variable names in environmental settings (e.g. $PRIMARY_SITE_URL/uploads).

Extensibility

  • Added craft\base\RequestTrait::getIsWebRequest(). (#15690)
  • Added craft\events\ApplyFieldSaveEvent. (#15872)
  • Added craft\events\DefineAddressCountriesEvent. (#15711)
  • Added craft\filters\BasicHttpAuthLogin. (#15720)
  • Added craft\filters\BasicHttpAuthStatic. (#15720)
  • Added craft\filters\ConditionalFilterTrait. (#15948)
  • Added craft\filters\UtilityAccess.
  • Added craft\helpers\Session::addFlash().
  • Added craft\helpers\Session::getAllFlashes().
  • Added craft\helpers\Session::getFlash().
  • Added craft\helpers\Session::hasFlash().
  • Added craft\helpers\Session::removeAllFlashes().
  • Added craft\helpers\Session::removeFlash().
  • Added craft\helpers\UrlHelper::encodeUrl(). (#15838)
  • Added craft\log\MonologTarget::getAllowLineBreaks().
  • Added craft\log\MonologTarget::getFormatter().
  • Added craft\log\MonologTarget::getLevel().
  • Added craft\log\MonologTarget::getMaxFiles().
  • Added craft\log\MonologTarget::getName().
  • Added craft\log\MonologTarget::getProcessor().
  • Added craft\log\MonologTarget::getUseMicrosecondTimestamps().
  • Added craft\services\Addresses::EVENT_DEFINE_ADDRESS_COUNTRIES. (#15711)
  • Added craft\services\Addresses::getCountryList(). (#15711)
  • Added craft\services\Fields::EVENT_BEFORE_APPLY_FIELD_SAVE. (#15872)
  • Added craft\services\Gc::deleteOrphanedFieldLayouts().
  • Added craft\web\View::registerCpTwigExtension().
  • Added craft\web\View::registerSiteTwigExtension().
  • Improved support for creating log targets for third party logging services. (#14974)
  • Deprecated the enableBasicHttpAuth config setting. craft\filters\BasicHttpAuthLogin should be used instead. (#15720)
  • Added the serializeForm event to Craft.ElementEditor. (#15794)

System

  • Location headers added via craft\web\Response::redirect() are now set to encoded URLs. (#15838)
  • Fixed a bug where orphaned field layouts weren’t getting garbage collected. (#16032)
  • Fixed a bug where the utils/fix-field-layout-uids command was misidentifying missing/duplicate UUID issues.

5.4.10.1

08 Nov 06:06
5.4.10.1
a6e788c
Compare
Choose a tag to compare
  • Fixed a bug where it wasn’t possible to create new nested Matrix entries for global sets. (#16041)

5.4.10

07 Nov 02:31
b1b69a3
Compare
Choose a tag to compare
  • Fixed a bug where entry/category drafts weren’t retaining new parent selections.
  • Fixed a bug where the “Related To” condition rule would lose track of the selected element if it belonged to a different site. (#16005)
  • Fixed a bug where the GraphQL tokens index was saying tokens never expired. (#16029)
  • Fixed a bug craft\services\Categories::saveGroup() and craft\services\Tags::saveTagGroup() weren’t respecting predefined UUID values on new models.
  • Fixed an error that could occur when editing a nested Matrix entry in a slideout or full-page editor, if it was initially edited while the Matrix field was in inline-editable blocks mode.
  • Fixed an error that could occur when editing an address that had provisional changes.
  • Fixed a bug where address cards weren’t showing provisional changes.
  • Fixed a bug where it was possible to edit nested addresses when viewing a revision. (#15961)
  • Fixed a bug where nested elements could have checkboxes and drag handles when viewing a revision. (#15961)
  • Fixed an error that could occur when bulk-editing elements from an element index, if any of them had provisional drafts. (#15962)
  • Fixed a bug where element exporting was only working as intended on the first page of results. (#15996, #16003)
  • Fixed a bug where Number fields weren’t getting sorted properly in PostgreSQL. (#15973)
  • Fixed a bug where field conditions weren’t taking effect within Matrix fields set to inline-editable blocks mode, if autosaveDrafts was disabled. (#15985)
  • Fixed an error that occurred when attempting to delete a nested Matrix entry, if it had an entry type that was no longer allowed for the Matrix field. (#15990)
  • Fixed a bug where structure data wasn’t getting deleted for drafts when moving an entry out of a Structure section. (#15949, #16014)
  • Fixed a bug where loading spinners weren’t always centered. (#16013)
  • Fixed a race condition that could break default entry creation for Matrix fields. (#15999)
  • Fixed a JavaScript error that occurred when sorting nested elements in an embedded element index, if the index was paginated. (#16026)
  • Fixed a styling bug.
  • Updated Axios to 1.7.7. (#15958)

4.12.9

07 Nov 02:27
4.12.9
1e3cd0a
Compare
Choose a tag to compare
  • Fixed a bug where entry/category drafts weren’t retaining new parent selections.
  • Fixed a bug where the “Related To” condition rule would lose track of the selected element if it belonged to a different site. (#16005)
  • Fixed a bug where the GraphQL tokens index was saying tokens never expired. (#16029)
  • Fixed styling issues. (#15965)