Skip to content

Commit

Permalink
fix missing uses of get_wp_vuln_api_token
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed May 24, 2023
1 parent 50025a4 commit f9637bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/pantheon/checks/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function run() {
$all_plugins = Utils::sanitize_data( get_plugins() );
$update = Utils::sanitize_data( get_plugin_updates() );
$report = array();
$should_check_vulnerabilities = $this->getWpVulnApiToken();
$should_check_vulnerabilities = Common\get_wp_vuln_api_token();
$vulnerable = false;

foreach( $all_plugins as $plugin_path => $data ) {
Expand Down Expand Up @@ -89,7 +89,7 @@ public function run() {
protected function getPluginVulnerability( $plugin_slug )
{
// Get the vulnerability API token from the platform
$wpvulndb_api_token = $this->getWpVulnApiToken();
$wpvulndb_api_token = Common\get_wp_vuln_api_token();

// Fail silently if there is no API token.
if( false === $wpvulndb_api_token || empty( $wpvulndb_api_token ) ) {
Expand Down

0 comments on commit f9637bd

Please sign in to comment.