cameronterry / dark-matter

A highly opinionated domain mapping plugin for WordPress Networks
Other
12 stars 2 forks source link

Compatibility for WooCommerce and Membership implementations #26

Closed cameronterry closed 6 years ago

cameronterry commented 6 years ago

This provides a new option called "Allow Logins?", which will let administrators setup a website to allow logins and logouts on the mapped domain.

In a setup using WordPress, WooCommerce and Storefront, logging in to the My Account page caused a situation where a user logged in successfully and then was immediately logged out. This is because Dark Matter checks the admin domain to see if there is a valid session and if not, logs the user out. Enabling the "Allow Logins?" setting will now ensure that login and logout functionality on WooCommerce (and likely Membership plugins) will now work as expected.

Also added .editorconfig and fixed the formatting for all files.