We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5389579 + 4fb5248 commit 103874aCopy full SHA for 103874a
includes/Main.php
@@ -51,16 +51,16 @@ public function loaded()
51
$authenticate = new Authenticate($authSimple);
52
$authenticate->loaded();
53
54
- add_action('init', function () use ($authSimple) {
55
- if (
56
- is_user_logged_in()
57
- && !$authSimple->isAuthenticated()
58
- ) {
59
- wp_destroy_current_session();
60
- wp_clear_auth_cookie();
61
- wp_set_current_user(0);
62
- }
63
- });
+ // add_action('init', function () use ($authSimple) {
+ // if (
+ // is_user_logged_in()
+ // && !$authSimple->isAuthenticated()
+ // ) {
+ // wp_destroy_current_session();
+ // wp_clear_auth_cookie();
+ // wp_set_current_user(0);
+ // }
+ // });
64
65
$this->registerRedirect();
66
$this->userNewPageRedirect();
0 commit comments