Merge branch 'master' of github.com:inpsyde/woocommerce-paypal-commerce-gateway

This commit is contained in:
David Remer 2020-04-09 11:07:15 +03:00
commit 0ef75351cc

View file

@ -13,6 +13,9 @@ return [
if (is_admin()) {
return new SessionHandler();
}
if (is_null(WC()->session)) {
return new SessionHandler();
}
$result = WC()->session->get(SessionHandler::ID);
if (is_a($result, SessionHandler::class)) {
return $result;