From 296890ee78f42708d223142e0a282b4cc1750d4b Mon Sep 17 00:00:00 2001 From: ren <18050944+renintw@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:34:15 +0900 Subject: [PATCH] 123 --- .../plugins/wordcamp-organizer-reminders/wcor-reminder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php b/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php index b85e17591..1a2845803 100644 --- a/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php +++ b/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php @@ -201,7 +201,7 @@ protected function save_post_meta( $post, $new_meta ) { delete_post_meta( $post->ID, 'wcor_transparency_report' ); if ( isset( $new_meta['wcor_transparency_report'] ) ) { - update_post_meta( $post->ID, 'wcor_transparency_report', filter_var( $new_meta['wcor_transparency_report'], FILTER_VALIDATE_BOOLEAN ) ); + update_post_meta( $post->ID, 'wcor_transparency_report', sanitize_text_field( $new_meta['wcor_transparency_report'] ) ); } if ( isset( $new_meta['wcor_send_days_before'] ) ) {