Plugin Directory


Ignore:
Timestamp:
09/17/2025 06:49:03 AM (6 months ago)
Author:
JavierCasares
Message:

[4.1.0] - 2025-09-16

Added

  • "Never" send notifications.
  • Choose notification day and time.
  • Configurable cache expiration (1, 6, 12 or 24 hours).
  • WP-CLI command to configure cache expiration.
  • Constants to set hiding components.
  • WP-CLI command to manage hidden components.
  • WP-CLI command to configure notification email and period.
  • Add notifications for Slack and Teams.
  • Disable mail notifications from mails.
  • WordPress Playground blueprint (in test).

Changed

  • Cache is always the same eveywhere.
  • Options for notifications.
  • Schedule fields only appear for selected periods.
  • Placeholder and conditional display for Slack and Teams notification fields.
  • Added links to documentation.

Fixed

  • When a plugin is updated, hide the vulnerabilities.
  • Display of schedule fields based on period.
  • Conditional display for email, Slack, and Teams notification fields.
  • When save, there where two saving messages.
  • wp_get_update_php_url() for WordPress 5.1.0+ (fallback)
  • wp_timezone() for WordPress 5.1.0+ (fallback)
  • wp_doing_cron() for WordPress 4.8.0+ (fallback)
  • Application Passwords / REST API after WordPress 5.6.0

Compatibility

  • WordPress: 4.7 - 6.9
  • PHP: 5.6 - 8.4
  • WP-CLI: 2.3.0 - 2.11.0

Tests

  • PHP Coding Standards: 3.13.4
  • WordPress Coding Standards: 3.2.0
  • Plugin Check (PCP): 1.6.0
  • SonarCloud Code Review
  • Amplify Code Check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpvulnerability/trunk/wpvulnerability-core.php

    r3161036 r3362936  
    144144    // Cache the vulnerability data and the timestamp for cache expiration.
    145145    if ( is_multisite() ) {
    146         update_site_option( 'wpvulnerability-core', wp_json_encode( $core ) );
    147         update_site_option( 'wpvulnerability-core-vulnerable', wp_json_encode( number_format( $wpvulnerability_core_vulnerable, 0, '.', '' ) ) );
    148         update_site_option( 'wpvulnerability-core-cache', wp_json_encode( number_format( time() + ( 3600 * WPVULNERABILITY_CACHE_HOURS ), 0, '.', '' ) ) );
     146                update_site_option( 'wpvulnerability-core', wp_json_encode( $core ) );
     147                update_site_option( 'wpvulnerability-core-vulnerable', wp_json_encode( number_format( $wpvulnerability_core_vulnerable, 0, '.', '' ) ) );
     148                update_site_option( 'wpvulnerability-core-cache', wp_json_encode( number_format( time() + ( 3600 * wpvulnerability_cache_hours() ), 0, '.', '' ) ) );
    149149    } else {
    150         update_option( 'wpvulnerability-core', wp_json_encode( $core ) );
    151         update_option( 'wpvulnerability-core-vulnerable', wp_json_encode( number_format( $wpvulnerability_core_vulnerable, 0, '.', '' ) ) );
    152         update_option( 'wpvulnerability-core-cache', wp_json_encode( number_format( time() + ( 3600 * WPVULNERABILITY_CACHE_HOURS ), 0, '.', '' ) ) );
     150                update_option( 'wpvulnerability-core', wp_json_encode( $core ) );
     151                update_option( 'wpvulnerability-core-vulnerable', wp_json_encode( number_format( $wpvulnerability_core_vulnerable, 0, '.', '' ) ) );
     152                update_option( 'wpvulnerability-core-cache', wp_json_encode( number_format( time() + ( 3600 * wpvulnerability_cache_hours() ), 0, '.', '' ) ) );
    153153    }
    154154
Note: See TracChangeset for help on using the changeset viewer.