/home/techb158/l2hypotheques.com/wp-content/plugins/complianz-gdpr/websitescan
NameSizeModeActions
class-wsc-api.php57910644editdlrm
class-wsc-auth.php299580644editdlrm
class-wsc-logger.php21040644editdlrm
class-wsc-notices.php64440644editdlrm
class-wsc-onboarding.php237640644editdlrm
class-wsc-scanner.php559080644editdlrm
class-wsc-settings.php194070644editdlrm
class-wsc.php32480644editdlrm
index.php280644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/complianz-gdpr/websitescan/class-wsc-logger.php (2104B)
$sanitized_context, 'error_message' => $sanitized_error_message, 'timestamp' => $sanitized_timestamp ); $sanitized_errors = array_map( function( $error ) { return array( 'context' => sanitize_text_field( $error['context'] ), 'error_message' => sanitize_text_field( $error['error_message'] ), 'timestamp' => sanitize_text_field( $error['timestamp'] ), ); }, $errors ); // Update the option with the new error log update_option('cmplz_wsc_logs', $sanitized_errors, false); } /** * Retrieves all logged errors from the WordPress options. * * @return array The array of logged errors. */ public function get_errors_log(): array { // Retrieve the errors stored in the WordPress option return get_option('cmplz_wsc_logs', array()); } /** * Clears all logged errors from the WordPress options. */ public function clear_errors_log(): void { // Delete the option to clear all stored errors delete_option('cmplz_wsc_logs'); } } }