PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | app/Hooks/Handlers/BlockEditorHandler.php +3 -2 2.2.5 → 2.5.0 View file →
@@ -7,8 +7,9 @@
7 7 use FluentBooking\App\Models\Calendar;
8 8 use FluentBooking\App\Models\CalendarSlot;
9 9 use FluentBooking\App\Services\CalendarEventService;
10 10 use FluentBooking\App\Services\Helper;
11 +use FluentBooking\App\Services\LocationService;
11 12 use FluentBooking\Framework\Support\Arr;
12 13
13 14 class BlockEditorHandler
14 15 {
@@ -50,9 +51,9 @@
50 51 'color_schema' => $event->color_schema,
51 52 'durations' => $event->getAvailableDurations(),
52 53 'locations' => $event->defaultLocationHtml(),
53 54 'payment_html' => $event->getPaymentHtml(),
54 - 'loc_settings' => $event->location_settings,
55 + 'loc_settings' => LocationService::sanitizePublicLocationSettings($event->location_settings),
55 56 'description' => $event->short_description
56 57 ];
57 58 }
58 59
@@ -59,9 +60,9 @@
59 60 $formattedCalendars[$calendar->id] = [
60 61 'id' => (string)$calendar->id,
61 62 'title' => $calendar->title,
62 63 'description' => wpautop(Helper::excerpt($calendar->description, 200)),
63 - 'author' => $calendar->getAuthorProfile(),
64 + 'author' => Arr::only($calendar->getAuthorProfile(), ['name', 'avatar']),
64 65 'event_order' => $calendar->getMeta('event_order'),
65 66 'events' => $formattedEvents
66 67 ];
67 68 }