diff -r be944660c56a -r 3d72ae0968f4 wp/wp-admin/includes/class-wp-community-events.php --- a/wp/wp-admin/includes/class-wp-community-events.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/includes/class-wp-community-events.php Tue Sep 27 16:37:53 2022 +0200 @@ -453,6 +453,7 @@ * @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,13 +469,16 @@ $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 ); } } $future_wordcamps = array_filter( $future_events, - function( $wordcamp ) { + static function( $wordcamp ) { return 'wordcamp' === $wordcamp['type']; } );