6.0.2

2022-10-20 Feature3 Fix16 Tweak10 Language1

Features

  • Add initial integration with Restrict Content Pro. This hides any events on the calendar views that the user is not allowed to view. [ [TEC-4457]]
  • Support the strict_dates REST API argument in the /events endpoint to control the inclusiveness of the date parameters. [TEC-4493]
  • 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. [TEC-4493]

Fixes

  • Prevent problems with WordPress.com Memcache turning Event Single Pages into 404s after the first visit [TEC-4488]
  • Add new function to properly escape event titles in URLs so they are better handled by rewrite rules. Props to @shisho585 for the fix! [TEC-4518]
  • Avoid resetting post data in some Dive theme and plugins. [TEC-4510]
  • Correct a few misnamed custom prop references. [TEC-4445]
  • Correct an issue with event venue when saving in our WPML integration. Props to @dgwatkins for the fix! [TEC-4498]
  • Correctly deprecate the Tribe__Events__Main::get_closest_event method. [ECP-1326]
  • Correctly set found_posts and max_num_pages when redirecting a query to the custom tables. [TEC-4508]
  • Do not run wasteful queries on switch_blog in multi-site installations. [TEC-4492]
  • Do not throw errors during migration when notices or errors come from other plugins. [ECP-1318]
  • Ensure tribe_is_month and tribe_is_by_date work as expected. [TEC-4509]
  • Ensure we handle if By_Day_View gets a null $event_obj->dates. Props to @juliangumenita for the fix! [TEC-4509]
  • Remove strict type hinting from Custom Tables v1 code that would cause fatals in some environments. [ECP-1343]
  • Resolve problems with tribe_get_full_address() which was not properly returning venue address.
  • Restore erroneously removed Events query filters that would result in out-of-order results. [TEC-4470]
  • Revert the code erroneous removed on legacy views removal around the "Show events with the site's other posts" setting.
  • Prevent a potential fatal when WP-CLI isn't present. [TEC-4470]

Tweaks

  • Move Month View day cell class logic to a standalone function with filters. [TEC-4457]
  • Add new method: \Tribe\Events\Views\V2\month_day_classes [TEC-4457]
  • Added filter tec_events_month_day_classes_comparison_date to filter the date used for class determination comparisons. [TEC-4457]
  • Added filter tec_events_month_day_classes to filter the actual class list before it gets passed to the template. [TEC-4457]
  • Update the organizer website field to type URL. [TEC-4395]
  • Add an event property for if the event is currently happening. [TEC-4454]
  • Create a filterable function tec_events_get_today_button_label() for the text on the "Today" button on calendar views. [TEC-4458]
  • Add a filter for the link title and aria-label so they match the button text more closely. [TEC-4458]
  • Added filters: tec_events_today_button_label and tec_events_view_{view_slug}_today_button_label to filter the output of the tec_events_get_today_button_label function, tec_events_today_button_title and tec_events_{view_slug}_view_today_button_title to filter the link title and aria-label. [TEC-4458]
  • Speed up the Custom Tables v1 migration process if a browser window is open on the migration UI. [TEC-4517]

Languages

  • 11 new strings added, 149 updated, 2 fuzzied, and 2 obsoleted.