Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion functions/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,10 @@ function sunflower_ajax_get_calendar_events() {
$event_tag_slugs = is_array( $event_tag_slugs ) ? $event_tag_slugs : array();

$calendar_event = array(
'title' => get_post()->post_title,
// The calendar renders titles as plain text (textContent), so decode the
// HTML entities WordPress stores in post_title (e.g. block-editor "&")
// back to plain characters. Inverse of WP's title encoding.
'title' => wp_specialchars_decode( get_post()->post_title, ENT_QUOTES ),
'start' => $fc_start,
'url' => get_permalink(),
'allDay' => $is_all_day,
Expand Down