Skip to content

Commit

Permalink
修复 Wnd_Defender 在未安装内存缓存的报错机制
Browse files Browse the repository at this point in the history
  • Loading branch information
swling committed Nov 2, 2022
1 parent bebe363 commit 8e4a96a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/hook/wnd-add-action-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ public static function action_before_shutdown() {

if (is_user_logged_in() or Wnd_Transaction_Anonymous::get_anon_cookies()) {
$defender = Wnd_Defender::get_instance(0, 0, 0);
$defender->reset();
if ($defender) {
$defender->reset();
}
}
}
}

0 comments on commit 8e4a96a

Please sign in to comment.