CraftCMS v3.0.18 Release Notes

Release Date: 2018-07-31 // over 5 years ago
  • ➕ Added

    • ➕ Added craft\helpers\App::assetManagerConfig().
    • ➕ Added craft\helpers\App::cacheConfig().
    • ➕ Added craft\helpers\App::dbConfig().
    • ➕ Added craft\helpers\App::mailerConfig().
    • ➕ Added craft\helpers\App::mutexConfig().
    • ➕ Added craft\helpers\App::logConfig().
    • ➕ Added craft\helpers\App::sessionConfig().
    • ➕ Added craft\helpers\App::userConfig().
    • ➕ Added craft\helpers\App::viewConfig().
    • ➕ Added craft\helpers\App::webRequestConfig().
    • ➕ Added craft\validators\StringValidator::$trim, which will cause leading/trailing whitespace to be stripped from model attributes.

    🔄 Changed

    • 👉 User verification and password-reset emails now link them back to the same site they were on when the email was sent, if it was sent from a front-end request. (#3029)
    • Dynamic app component configs are now defined by methods on craft\helpers\App, making it easier to modify them from config/app.php. (#3152)
    • Structure operations now ensure that no other operations are being performed on the same structure, reducing the risk of corrupting the structure. (#3148)
    • The {% js %} tag now supports the following position params: at POS_HEAD, at POS_BEGIN, at POS_END, on POS_READY, and on POS_LOAD (e.g. {% js at POS_END %}).
    • Craft once again checks for X-Forwarded-For headers when determining the user’s IP. (#3036)
    • Leading/trailing whitespace characters are now stripped from element titles on save. (#3020)
    • ⚡️ Updated svg-sanitizer to 0.9.

    🗄 Deprecated

    • 🗄 Deprecated craft\db\Connection::createFromConfig(). craft\helpers\App::dbConfig() should be used instead.
    • 🗄 Deprecated craft\helpers\MailerHelper::createMailer(). craft\helpers\App::mailerConfig() should be used instead.

    🛠 Fixed

    • 🛠 Fixed a bug where collapsing structure elements would only hide up to 50 of their descendants.
    • 🛠 Fixed a bug where Date/Time fields could lose their value if they were used in an entry type’s Title Format, and the entry’s site’s language was different than the user’s preferred language. (#3151)
    • 🛠 Fixed a bug where Dropdown fields could show an incorrect selected value in limited circumstances.
    • 🛠 Fixed a bug where Dropdown fields on an element index view could show an incorrect selected value in limited circumstances.