PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | includes/_front_end/class-fe-render.php +6 -8 11.711.8.3 View file →
@@ -52,11 +52,12 @@
52 52 'start_month_calendar' => false,
53 53 'shortcode_param__options' => '',
54 54 'calendar_dates_start' => '',
55 55 'calendar_dates_end' => '',
56 - 'booking_hash' => '',
57 - 'form_status' => 'published',
58 - 'calendar_request_overrides' => array(),
56 + 'booking_hash' => '',
57 + 'form_status' => 'published',
58 + 'booking_workflow' => 'classic',
59 + 'calendar_request_overrides' => array(),
59 60 );
60 61 $params_arr = wp_parse_args( $params_arr, $default_params );
61 62 $is_echo = ( ! empty( $params_arr['is_echo'] ) );
62 63
@@ -125,15 +126,12 @@
125 126 // Normalize calendar_dates_start/end.
126 127 // ---------------------------------------------------------------------
127 128 $calendar_dates_range = WPBC_FE_Attr_Postprocessor::normalize_calendar_dates_range( $params_arr['calendar_dates_start'], $params_arr['calendar_dates_end'] );
128 129 $classic_booking_context_token = '';
129 - if (
130 - function_exists( 'wpbc_classic_booking_context_encode' )
131 - && '' !== $calendar_dates_range['start']
132 - && '' !== $calendar_dates_range['end']
133 - ) {
130 + if ( function_exists( 'wpbc_classic_booking_context_encode' ) ) {
134 131 $classic_booking_context_token = wpbc_classic_booking_context_encode(
135 132 array(
133 + 'booking_workflow' => $params_arr['booking_workflow'],
136 134 'resource_id' => $params_arr['resource_id'],
137 135 'calendar_dates_start' => $calendar_dates_range['start'],
138 136 'calendar_dates_end' => $calendar_dates_range['end'],
139 137 'custom_form' => $params_arr['custom_booking_form'],