diff --git a/src/wp-admin/includes/class-wp-community-events.php b/src/wp-admin/includes/class-wp-community-events.php index cf995eeac8..3f43f8d1db 100644 --- a/src/wp-admin/includes/class-wp-community-events.php +++ b/src/wp-admin/includes/class-wp-community-events.php @@ -453,6 +453,7 @@ class WP_Community_Events { * @since 4.8.0 * @since 4.9.7 Stick a WordCamp to the final list. * @since 5.5.2 Accepts and returns only the events, rather than an entire HTTP response. + * @since 6.0.0 Decode HTML entities from the event title. * * @param array $events The events that will be prepared. * @return array The response body with events trimmed. @@ -468,6 +469,9 @@ class WP_Community_Events { $end_time = (int) $event['end_unix_timestamp']; if ( time() < $end_time ) { + // Decode HTML entities from the event title. + $event['title'] = html_entity_decode( $event['title'], ENT_QUOTES, 'UTF-8' ); + array_push( $future_events, $event ); } }