Skip to content

2.1.0

Choose a tag to compare

@cameronterry cameronterry released this 20 Jun 12:52

This release contains the following changes and fixes.

  • Added support and tests for Site Health Checks feature, originally introduced in WordPress 5.2. Tests the following;
    • Ensure the sunrise.php dropin is present.
    • Ensure the sunrise.php matches the version within Dark Matter.
    • Ensure the SUNRISE constant is setup correctly.
    • Checks FORCE_SSL_ADMIN is setup correctly and encourages best practices regarding HTTPS.
    • Checks COOKIE_DOMAIN to ensure it is not set.
    • Recommends a primary domain is set.
  • Changed the behaviour when COOKIE_DOMAIN is set.
    • Now disables SSO (Single-Sign On) and no longer produces in a wp_die() error.
    • The new Site Health check will note an error if COOKIE_DOMAIN is set and state that SSO has been disabled.
  • Added PHPCS through Composer for development.
  • Changed the way the SSO script is included.
    • The script tag is now created within JavaScript. (Prevents; #33)
    • Unix epoch is appended to the URL for cache breaking.
    • Note; it is still recommended to ensure the dark_matter_dmcheck and dark_matter_dmsso is excluded from any request caching solution.
  • When creating a new domain, the protocol field now defaults to HTTPS.
  • Fixed the unmap method doc block.
  • Switch the CSS build from SASS to PostCSS and CSS / Webpack is updated accordingly.
  • Removed an unused property in DM_UI class. (Fixes #42)
  • Changed wp darkmatter dropin check to use the same test method from Site Health.
  • Added localisation to the JavaScript UI components.
  • Tested with WordPress 5.4.x.
  • Contributing notes;
    • Added husky / lint-staged.
    • Pre-commit runs lint checks for JavaScript and PHP files.