Plugin Directory

Changeset 2131551


Ignore:
Timestamp:
07/31/2019 04:23:40 PM (7 years ago)
Author:
glen_scott
Message:

clarify error message in daily email

Location:
plugin-security-scanner/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugin-security-scanner/trunk/plugin-security-scanner.php

    r2115070 r2131551  
    55 * Plugin URI: https://yellowsquare.com/plugin-security-scanner/
    66 * Description: This plugin determines whether any of your plugins have security vulnerabilities.  It does this by looking up details in the WPScan Vulnerability Database.
    7  * Version: 2.0.0
     7 * Version: 2.0.1
    88 * Author: Glen Scott
    99 * Author URI: https://www.glenscott.co.uk
     
    394394    if (is_wp_error($vulnerabilities)) {
    395395        if ( $admin_email && '1' === $options['email_notification'] ) {
    396             $mail_body = 'You must enter an API token in order to use the scanner.  Register a user at the following URL and then copy the API token into the the Plugin Security Scanner settings: https://wpvulndb.com/users/sign_up';
    397 
    398             wp_mail( $admin_email, get_bloginfo() . ' ' . __( 'Plugin Security Scan', 'plugin-security-scanner' ) . ' ' . date_i18n( get_option( 'date_format' ) ), $mail_body );
     396            wp_mail( $admin_email, get_bloginfo() . ' ' . __( 'Plugin Security Scan', 'plugin-security-scanner' ) . ' ' . date_i18n( get_option( 'date_format' ) ), $vulnerabilities->get_error_message() );
    399397        }
    400398
    401399        if ('1' === $options['webhook_notification']) {
    402400            $request = new WP_Http;
    403             $message = 'You must enter an API token in order to use the scanner.  <a href="https://wpvulndb.com/users/sign_up">Register a user</a> and then copy the API token into the the Plugin Security Scanner settings.';
    404             $result = $request->post( $options['webhook_notification_url'], array('body' => apply_filters('pluginsecurityscanner_webhook_message', json_encode($message)), 'headers' => array( "Content-type" => "application/json" )) );
     401            $result = $request->post( $options['webhook_notification_url'], array('body' => apply_filters('pluginsecurityscanner_webhook_message', json_encode($vulnerabilities->get_error_message())), 'headers' => array( "Content-type" => "application/json" )) );
    405402        }
    406403    } else {
  • plugin-security-scanner/trunk/readme.txt

    r2115073 r2131551  
    33Tags: plugins,security,scanner,vulnerabilities,secure
    44Tested up to: 5.2.2
    5 Stable tag: 2.0.0
     5Stable tag: 2.0.1
    66License: GPLv2 or later
    77
     
    3232
    3333== Changelog ==
     34
     35= 2.0.1 =
     36* Clarified error message in daily email
    3437
    3538= 2.0.0 =
Note: See TracChangeset for help on using the changeset viewer.