Skip to content

Commit

Permalink
comment out vulnerability-related code
Browse files Browse the repository at this point in the history
we might want this or something similar later when we integrate with Patchstack
  • Loading branch information
jazzsequence committed May 19, 2023
1 parent 44f4581 commit 74c1466
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions php/pantheon/checks/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,28 @@ public function run() {
$slug = substr($plugin_path, 0, stripos($plugin_path,'/'));
}

$vulnerable = $this->is_vulnerable($slug, $data['Version']);
// Todo: Commented out pending Patchstack integration.
// $vulnerable = $this->is_vulnerable($slug, $data['Version']);

$needs_update = 0;
$available = '-';
if (isset($update[$plugin_path])) {
$needs_update = 1;
$available = $update[$plugin_path]->update->new_version;
}
if ( false === $vulnerable ) {
$vulnerable = "None";
} else {
$vulnerable = sprintf('<a href="https://wpscan.com/plugins/%s" target="_blank" >more info</a>', $slug );
}
// Todo: Commented out pending Patchstack integration.
// if ( false === $vulnerable ) {
// $vulnerable = "None";
// } else {
// $vulnerable = sprintf('<a href="https://wpscan.com/plugins/%s" target="_blank" >more info</a>', $slug );
// }

$report[$slug] = array(
'slug' => $slug,
'installed' => (string) $data['Version'],
'available' => (string) $available,
'needs_update' => (string) $needs_update,
'vulnerable' => $vulnerable,
// 'vulnerable' => $vulnerable,
);
}
$this->alerts = $report;
Expand Down

0 comments on commit 74c1466

Please sign in to comment.