WordPress Cluster 9.0.119

  • Plugin Updates
    • Dark Matter 2.1.0
      • 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.
        • Set to adhere to the WordPress-VIP-Go coding standards (https://wpvip.com/documentation/how-to-install-php-code-sniffer-for-wordpress-vip/).
        • Reorganised filenames to be all lowercase with hyphens and prefixed `class-` where appropriate.
        • Improved checks and sanitisation of Server Variables.
        • All spaces are tabs – courtesy of phpcbf – rejoice!
      • Changed the way the SSO script is included.
        • The script tag is now created within JavaScript.
        • Unix epoch is appended to the URL for cache breaking.
        • Note; it is still recommended to exclude 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 DM_URL->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.
      • 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.
  • Developer
    • Legacy Vagrant build folder removed
  • PR
    • https://github.com/dc-thomson/wordpress/pull/2798
    • https://github.com/dc-thomson/wordpress/pull/2799