Summary
Maintenance Release
The latest version of The Events Calendar adds various date support to the REST API.
As always, we recommend testing updates on a staging site first, but it should all be smooth sailing.
New
New features included in this release:
- We now support the
strict_dates
REST API argument in the/events
endpoint to control the inclusiveness of the date parameters. - Support relative date parameters (e.g:
starts_before
,ends_after
as REST API arguments in the/events
endpoint to retrieve single-day and multi-day events in a single search. - Adds initial integration with Restrict Content Pro. This hides any events on the calendar views that the user is not allowed to view.
Fixed
Bugs that were squashed in this release:
- Adds new function to properly escape event titles in URLs, so they are better handled by rewrite rules. Props to @shisho585 for the fix!
- We now avoid resetting post data in some Divi theme and plugins.
- Corrected a few misnamed custom prop references in postcss.
- Corrected an issue with the event venue when saving in our WPML integration. Props to @dgwatkins for the fix!
- We now correctly deprecate the Tribe__Events__Main::get_closest_event method.
- Correctly set found_postsand max_num_pages when redirecting a query to the custom tables.
- We now do not run wasteful queries on switch_blog in multi-site installations.
- We now do not throw errors during migration when notices or errors come from other plugins.
- Ensure tribe_is_month and tribe_is_by_date work as expected.
- Ensure we handle if By_Day_View gets a null $event_obj->dates. Props to @juliangumenita for the fix!
- Remove strict type hinting from Custom Tables v1 code that would cause fatal errors in some environments.
- We resolved problems with
tribe_get_full_address()
which was not properly returning the venue address. - Restored erroneously removed Events query filters that would result in out-of-order results.
- Reverted the code erroneously removed on legacy views removal around the “Show events with the site’s other posts” setting.
- Moved Month View day cell class logic to a standalone function with filters.
- Added new method:
\Tribe\Events\Views\V2\month_day_classes
- Added filter
tec_events_month_day_classes_comparison_date
to filter the date used for class determination comparisons. - Added filter
tec_events_month_day_classes
to filter the actual class list before it gets passed to the template. - Updated the organizer website field to type URL.
- Updated the venue website field to type URL.
- Add an event property if the event is currently happening.
- Created a filterable function
tec_events_get_today_button_label()
for the text on the “Today” button on calendar views. - Added a filter for the link title and aria-label, so they match the button text more closely.
- Added filters:
tec_events_today_button_label
andtec_events_view_{view_slug}_today_button_label
to filter the output of thetec_events_get_today_button_label
functiontec_events_today_button_title
andtec_events_{view_slug}_view_today_button_title
to filter the link title and aria-label
- We sped up the Custom Tables v1 migration process if a browser window is open on the migration UI.
- We’ve resolved a 404 error on past single events.
- We added a venue address and Google Map that was previously missing on single events, List view, and venue view when using Divi.
- We fixed a fatal error that was occurring on single events.
- Upcoming events are now displayed in the proper chronological order.
- We now have a
is_now
property for events.
Translations
Updated language files and strings:
- 11 new strings added
- 149 strings updated
- 2 strings fuzzied
- 2 strings obsoleted
The post The Events Calendar 6.0.2 appeared first on The Events Calendar.
0 Commentaires