You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Added a viewer local time tooltip to the Event Date block and an administrative setting under Events > Date & Time. When enabled and the event date displays a timezone, viewers in a different timezone see the converted event time in their local timezone via an accessible tooltip. #2065
Added subscribe link placeholders for calendar feeds. Set any link or button to a placeholder such as #gatherpress-calendar-subscribe-venue-url or #gatherpress-calendar-feed-topic-workshops-url, and it links to the matching feed for the page, the whole site, the events archive, a venue or a topic, as a webcal:// or https:// address. A placeholder with no feed loses its address, so it is no longer a link that goes nowhere. In an Add to Calendar dropdown, a placeholder uses the event the block is set to. #2574
Added the ability to filter a Query Loop of shadow-source posts (venues, productions, seasons) by whether those sources have upcoming or past events attached. A "Filter by event activity" toggle in the GatherPress query panel turns it on, and an Upcoming / Past choice (Upcoming by default) limits the list to sources with at least one upcoming event, or at least one past event. Supported over the REST API for editor previews. #2205
Add event-end scheduler and cache invalidation. Schedules a single WP-Cron job at the event end timestamp to fire the gatherpress_event_ended action and invalidate post and query caches when an event concludes. #2412
A new Email page in the Events menu lets an administrator email users without going through an event: all users, users with chosen roles, or, while RSVPs are turned on, users who RSVP'd to any event in the past 30, 90, 180 or 365 days. Users who turned event updates off are skipped, and the message goes out from cron in batches. gatherpress_site_message_active_days changes the active windows on offer, and gatherpress_site_message_subject the subject. #2334
A shared Mailer class now queues and sends event update emails and Email page messages from cron, in batches of 50 recipients, so a large send never holds up the request that started it. Code registers a mail type with register() and queues it with queue(). gatherpress_email_recipient_consent decides per recipient whether a message goes out (it defaults to the event updates opt-in, except for emails about a user's own RSVP), gatherpress_email_recipients and gatherpress_email_batch_size adjust each batch, and gatherpress_email_pre_enqueue_job lets a companion plugin take over scheduling. #2334
Attendees now get an email reminder before an event starts, a day ahead by default, and an hour ahead as well if chosen. Change the timing or turn reminders off under Settings > RSVP > Notifications, where waiting list emails can now be turned off too. Users can opt out of reminders in their profile, and the new gatherpress_event_starting action lets other code run when an event starts. #2554
Attendees who move off the waiting list now get an email confirming their spot. Because it is about their own RSVP, it goes out even when they turned event updates off. #2323
Close RSVPs for events that have been canceled. New RSVPs and status changes are refused, and reminder emails are not sent. The RSVP block gets an editable Canceled template, a disabled "Canceled" button by default, and the RSVP Form gets a "When Event Is Canceled" visibility setting with a canceled notice in its default template. Blocks saved before this show a default canceled button or notice. #2410
Events can say they are canceled, postponed, rescheduled, moved or tentative, rather than leaving people to guess from a note in the description. The status is set from the event's Date & Time settings and reaches calendar apps as a real cancellation. Companion plugins and site owners can add statuses of their own with the gatherpress_event_statuses filter, and choose whether each one crosses out the date the way canceled and postponed do. #2229
Four calendar blocks and an "Event Calendar" variation of the Query Loop block show events, or other posts, in a month, week or day calendar, with Previous and Next links, a popover for each event and an optional time grid of hours. The blocks come from the GatherPress Calendar plugin and keep its block names, so content made with the plugin continues to work. #2503
Modals and RSVPs work without JavaScript. A modal opens and closes by reloading the page where it was clicked, and the RSVP block saves an RSVP, guest count and anonymity through the RSVP REST endpoint, then returns to the block. #2513
On the Events > RSVPs screen, an RSVP can now be marked as a no-show as well as checked in. RSVPs that were never marked show as "Not recorded", and a new filter lists the RSVPs in each check-in state, so the remaining ones can be marked as no-shows together. Companion plugins can add their own check-in states, such as a check-in for people who joined online. #2550
Show upcoming and past events, published venues, and attending and waiting list RSVPs in the dashboard At a Glance widget. #2397
The event list query, Event\Query::get_events_list(), now takes an arguments array instead of positional parameters, so code calling it with positional arguments needs to pass an array. A new gatherpress_event_query_vars filter runs on every query that lists upcoming or past events, including the Event Query block, event archives and feeds, and the iCal feed. A plugin can use it to add meta constraints, taxonomies or its own ordering, for example to filter events by location, and GatherPress still applies the upcoming or past date range. #2339
Changed
Clicking the confirmation link in an RSVP email now remembers the RSVP in that browser until it closes, and takes the token off the address bar, so it no longer ends up in browser history or a copied link. The RSVP block and REST API read this session cookie instead of the gatherpress_rsvp_token URL parameter, and the RSVP REST route no longer takes an rsvp_token parameter. #2454
Events and venues are left out of the random post address that WordPress 7.2 adds, such as /random/event/. #2659
Modals now open as the browser's own dialog, so the browser keeps keyboard focus inside an open modal, hides the page behind it from assistive technology, and closes it on Escape. #2535
Settings import and export on the Tools tab now go through the gatherpress/v1/settings/export and gatherpress/v1/settings/import REST routes, replacing the gatherpress_export_settings and gatherpress_import_settings admin-ajax actions. Results and errors show on the page instead of in an alert, and the import preview shows the file's contents as text rather than HTML. #2456
The add-to-calendar links and iCalendar feeds moved from the GatherPress\Core\Calendar namespace to GatherPress\Core\Calendar\External, and their filters are now gatherpress_calendar_external_url and gatherpress_calendar_external_max_age. Code that uses the old class names or filter names needs updating. Feed and download URLs do not change. #2536
The confirmation email for an RSVP without an account now goes out from cron through the shared Mailer, so submitting the RSVP no longer waits on the mail server. Its link works for 24 hours from when the email is sent, rather than from when the RSVP was made, and an unconfirmed RSVP is removed 24 hours after its email went out. #2454
The profile opt-in names the post types that take RSVPs, for example "Events and Sessions", instead of always saying "events". A site can change the wording through the post types' own labels. #2334
The gatherpress_query_vars filter is now gatherpress_query_loop_vars. Code that hooks the old name needs to use the new one. #2205
The read_post and edit_post capability constants move from Event to a new GatherPress\Core\Capability class. A new Has_Capabilities trait gives Event and Venueread_capability() and edit_capability() methods that default to those constants, so either class can use its own capability later without changing the shared default. Event::READ_CAPABILITY and Event::EDIT_CAPABILITY are removed, so code using them should switch to Event::read_capability() and Event::edit_capability(). #2417
Removed
Remove the fallbacks that let the pre-0.36.0 setting and event meta names keep answering. A site that has not re-saved its settings since 0.36.0, or an event whose meta was never rewritten, should run GatherPress Alpha's migration before updating. The former meta names are also no longer registered, so a REST consumer still reading gatherpress_max_attendance_limit or gatherpress_max_guest_limit needs to move to gatherpress_capacity and gatherpress_guest_limit. #2358
Fixed
A Dropdown block set to open on hover now has a working button for keyboard and screen reader users. Enter or Space opens it, it announces whether it is expanded, and focus alone no longer opens it. Escape or a second click hides a menu shown by hover until the pointer leaves. #2628
After an RSVP is submitted without JavaScript, the page now scrolls to the RSVP Form's success message instead of staying at the top. #2532
An Add to Calendar menu item that links to a calendar feed with no feed is no longer a button that does nothing. The keyboard skips it, and screen readers do not announce it as a button. #2629
An inherited Event Query block saved without a sort order or per-page count keeps the main query's instead of logging warnings. #2648
An RSVP that waits for approval, such as one from someone without an account who confirms by email, now goes on the waiting list when the event is already full by the time it is approved, the same as an RSVP from someone with an account. #2665
A static venue map image that is replaced now stays on disk for a week before it is deleted, so a page cache or CDN that still serves the old page keeps showing the map. Before, the old image was deleted at once, and a cached page showed a blank map until the cache expired. The new gatherpress_static_map_delete_unused_delay filter changes the delay, and 0 deletes at once. #2630
A venue can set its latitude and longitude by hand again, for a place without a street address like a park entrance or a trailhead. Turn on Set coordinates manually in the venue settings, and the address no longer moves the map pin. #2542
Calendar links now work at the addresses GatherPress links to. The event archive feed follows an archive slug set through has_archive, and the archive feed, single-event calendar links and term feeds of custom post types and taxonomies follow the permalink front (such as /blog/). Before, those links returned a 404. #2647
Changing "Number of guests?" in the RSVP block now saves and announces the RSVP once, a moment after the last change, instead of once for every step of the arrow keys. #2633
For an attendee who can open the online event link, the link no longer shows or announces "Link available for attendees only." People who cannot open the link still see the note. Events saved before this change get the fix too. #2634
Hide the Layout panel and alignment toolbar buttons when a Calendar Day block uses the Ribbon style, while keeping layout controls available for Classic calendar days. #2576
Improve color contrast in the Bold, Gradient, Circular and Minimal calendar styles, and keep an event's bar joined up and on the same row across its days, including in the Colored Dots style. #2549
Keep backslashes in RSVP names and other form input instead of stripping them. #2557
On the RSVPs screen, approving, unapproving, marking as spam, deleting or setting the check-in of an RSVP now shows a notice that says what happened, and returns to a clean address, so reloading the page no longer repeats the action. The IP address and email links next to each attendee are now large enough to tap easily. #2640
Opening a template whose Query Loop shows the page's own events, such as an events archive, no longer turns it into an upcoming events list or marks the template as changed. #2660
Opening a venue in the editor no longer geocodes its saved address again. When a geocode request fails, the venue keeps its saved map location and a notice says so, so a failed lookup no longer empties the coordinates and replaces the map with "Map is being prepared". #2669
RSVP lists filtered by response no longer show the results of a different filter on sites with a persistent object cache. #2550
Screen readers now announce the pin on an interactive venue map by the venue name, or by the address when the venue has no title, instead of "Marker". #2631
Screen readers now name the RSVP form "RSVP", so people can tell it apart from the theme's comment form, which also asks for a name and email. A name set on the form in the editor is kept. #2635
Settings fields have room between their labels and inputs, matching the rest of the settings table, and the Date Format and Time Format fields work like the ones on Settings > General: the Custom field and the preview show whichever format is picked, so the preview is never empty. #2458
Settings fields print their locked state through WordPress's own escaping helpers instead of unescaped output. #2561
The "Past Event" and "Canceled" buttons in the RSVP block are now skipped by the Tab key and announced by screen readers as unavailable, instead of acting like buttons that do nothing. #2632
The event's Compose Message dialog now opens on the Subject field, groups the recipient checkboxes under a "Recipients" heading that screen readers announce, and keeps the Send Email button reachable by keyboard with a note that says to choose at least one group first. #2637
The lines of an event in a calendar download or feed are now folded at 75 octets, as RFC 5545 asks. Folding used to count characters instead of octets and leave out the property name, so a long title, location or link could run past 75 octets, and text in a script such as Japanese could run to three times that. #2540
The list that opens from a Dropdown block, such as Add to Calendar, no longer traps keyboard focus: Tab moves through the items and then on to the rest of the page, and the list closes when focus leaves it. Escape still closes it and returns to the button. Screen readers also no longer announce the list as a region without a name. #2636
The network settings page now loads the GatherPress settings scripts and styles, so fields that need them, such as autocomplete, the date and URL previews and fields shown only for certain values, work there too. #2456
The RSVP settings tab and the RSVP block placeholder now have their own translation contexts, so languages that use different words for them, such as French ("Réservations" for the tab, "Réserver" for the action), can translate each one correctly. The RSVP list table in the admin keeps its styles in every language. #2584
The site name in a calendar download or feed is now escaped and folded at 75 octets, like the event lines, so a long name or one with a comma, a semicolon or an ampersand comes through intact. #2604
The venue address field no longer drops the first characters you type or paste right after you click or tab into it. The field still keeps the browser from offering saved addresses when it gets focus. #2638
The Venue Map block no longer shows the address or location of a venue hidden by its own password or its event's. #2406
When an RSVP Form is submitted without JavaScript and an answer is refused, or the email address has already responded, the page now reloads with the form showing what was typed and the same messages the form shows with JavaScript, instead of an error page. #2531
When the RSVP Form cannot get a security token from the site, it now submits the RSVP the regular way without first showing an error message. #2639