diff --git a/public_html/wp-content/themes/wporg-events-2023/src/event-list/index.php b/public_html/wp-content/themes/wporg-events-2023/src/event-list/index.php index a11dbf0881..065482dafe 100644 --- a/public_html/wp-content/themes/wporg-events-2023/src/event-list/index.php +++ b/public_html/wp-content/themes/wporg-events-2023/src/event-list/index.php @@ -55,7 +55,7 @@ function render( $attributes, $content, $block ) { // Group events by month year. $grouped_events = array(); foreach ( $filtered_events as $event ) { - $event_month_year = gmdate('F Y', $event->timestamp); + $event_month_year = gmdate('F Y', esc_html( $event->timestamp) ); $grouped_events[ $event_month_year ][] = $event; } @@ -67,7 +67,7 @@ function render( $attributes, $content, $block ) { $content .= '