Changeset 3362936 for wpvulnerability/trunk/wpvulnerability-core.php
- Timestamp:
- 09/17/2025 06:49:03 AM (6 months ago)
- File:
-
- 1 edited
-
wpvulnerability/trunk/wpvulnerability-core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wpvulnerability/trunk/wpvulnerability-core.php
r3161036 r3362936 144 144 // Cache the vulnerability data and the timestamp for cache expiration. 145 145 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, '.', '' ) ) ); 149 149 } 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, '.', '' ) ) ); 153 153 } 154 154
Note: See TracChangeset
for help on using the changeset viewer.