From a1c776641f1df2b021dac4741dfdba74cadbe058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Mon, 23 Dec 2024 12:29:31 +0100 Subject: [PATCH] don't pass null to wp_kses_post --- .../activitypub/transmogrifier/class-the-events-calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/activitypub/transmogrifier/class-the-events-calendar.php b/includes/activitypub/transmogrifier/class-the-events-calendar.php index 2c12d68..556b727 100644 --- a/includes/activitypub/transmogrifier/class-the-events-calendar.php +++ b/includes/activitypub/transmogrifier/class-the-events-calendar.php @@ -120,7 +120,7 @@ class The_Events_Calendar extends Base { $args = array( 'title' => sanitize_text_field( $this->activitypub_event->get_name() ), - 'content' => wp_kses_post( $this->activitypub_event->get_content() ), + 'content' => wp_kses_post( $this->activitypub_event->get_content() ?? '' ), 'start_date' => gmdate( 'Y-m-d H:i:s', strtotime( $this->activitypub_event->get_start_time() ) ), 'duration' => $duration, 'status' => 'publish',