Skip to content

2.3.0

Compare
Choose a tag to compare
@cameronterry cameronterry released this 04 May 19:01
· 46 commits to develop since this release
2ebe6f6
  • Added switch_to_blog() support for Media Domains. (#97)
    • When using the various attachment functions within the switch_to_blog() context, it will now respect media domain settings on a per site basis.
    • Setting media domains through the DM_NETWORK_MEDIA constant now works more fully.
    • It is now possible to controlled media domains through the network_media property on DarkMatter_Domains, to enable more sophisticated logic in code.
  • Tweaked the way mapped domains are detected to better support scenarios involving switch_to_blog(). (#96)
    • No longer relies solely on the DOMAIN_MAPPING constant, set when a request is processed through a primary domain.
    • Essentially, if the website handling the request is being viewed through its primary domain, then URLs within a switch_to_blog() context will be mapped if applicable (i.e. the blog switched to has an active primary domain).
    • And vice-versa - if a request is through the admin domain ("unmapped"), then URLs in the switch_to_blog() context will be unmapped as well (to prevent cross-domain compatibility issues / warnings in browsers).
  • Fixed an issue where setting and unsetting the Primary Domain would update the database only, and not the cache. (#94)
    • DarkMatter_Domains now handles the cache state for both primary and general domain caches.
    • Also removes some duplicate database update logic.
    • The third parameter of action hooks darkmatter_primary_set and darkmatter_primary_unset is now deprecated. It is always true as the database is always updated now, therefore it is redundant.
  • Domains are now ordered alphabetically - A to Z - when returned by get_domains_by_type(). (#95)
  • Fixed a typo preventing the cache retrieval for Restricted Domains working properly. (#89)
  • Fixed a malformed header for the 2.2.3 release in readme.txt file.
  • First iteration of unit tests added to the project to improve quality assurance of this release and future releases. (#88)
    • Uses PHP Unit and based on the setup provided by the WP CLI scaffold.
    • Issues / fixes in this release were found by the new unit tests.
    • Unit tests are not included with the release version of the plugin, and are accessible via Github repository: https://github.com/cameronterry/dark-matter/
  • Updated NPM dependencies to their latest versions.
  • Tested with WordPress 6.0 RC1.
  • We have incorporated Snyk scanning for dependencies in Composer and NPM. (#76)

Full Changelog: 2.2.3...2.3.0