Plugins such as Jetpack (version 8.1.1+) can use the send_auth_cookies filter to prevent auth cookies from being sent. This is clearly the intended usage of this filter, but it means the switch back functionality can be broken.
To get around this, let's switch to a custom filter instead of using core's. This filter is only used during tests, so the change should be safe.
See #48
Plugins such as Jetpack (version 8.1.1+) can use the
send_auth_cookies
filter to prevent auth cookies from being sent. This is clearly the intended usage of this filter, but it means the switch back functionality can be broken.To get around this, let's switch to a custom filter instead of using core's. This filter is only used during tests, so the change should be safe.