Plugin Directory

Changeset 1829626


Ignore:
Timestamp:
02/26/2018 09:55:03 PM (8 years ago)
Author:
glen_scott
Message:

Added ignore issues with no fixes functionality

File:
1 edited

Legend:

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

    r1829614 r1829626  
    226226                        continue;
    227227                    }
     228                    if ('1' == $options['ignore_nofix'] && $vuln->fixed_in === null) {
     229                        continue;
     230                    }
    228231                    $vulnerabilities[$version_raw][] = $vuln;
    229232                }
     
    250253                    if ( isset( $plugin->$plugin_key->vulnerabilities ) ) {
    251254                        foreach ( $plugin->$plugin_key->vulnerabilities as $vuln ) {
     255                            if ('1' == $options['ignore_nofix'] && $vuln->fixed_in === null) {
     256                                continue;
     257                            }
     258
    252259                            if ( ! isset($vuln->fixed_in) ||
    253260                                version_compare( $details['Version'], $vuln->fixed_in, '<' ) ) {
     
    277284                if ( isset( $theme->$theme_key->vulnerabilities ) ) {
    278285                    foreach ( $theme->$theme_key->vulnerabilities as $vuln ) {
     286                        if ('1' == $options['ignore_nofix'] && $vuln->fixed_in === null) {
     287                            continue;
     288                        }
     289
    279290                        if ( ! isset($vuln->fixed_in) ||
    280291                            version_compare( $details['Version'], $vuln->fixed_in, '<' ) ) {
Note: See TracChangeset for help on using the changeset viewer.