Skip to content

Commit

Permalink
fix: check wordfence is enabled before use
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimds committed Nov 22, 2023
1 parent 3dfb36b commit 091d2a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/app/themes/awasqa/src/gravity-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,11 @@ function scanFile($file, $patterns)
return (bool) ($file['tmp_name'] ?? null);
});

// get virus patterns from WordFence
if (!class_exists("wfScanEngine")) {
return $validation_result;
}

// get virus patterns from WordFence
$scan_engine = new \wfScanEngine();
$wp_version = \wfUtils::getWPVersion();
Expand Down

0 comments on commit 091d2a5

Please sign in to comment.