| @@ -209,8 +209,9 @@ | ||
| 209 | 209 | require_once WPBC_PLUGIN_DIR . '/includes/_functions/admin_menu_url.php'; // Admin Menu Pages & URLs. |
| 210 | 210 | require_once WPBC_PLUGIN_DIR . '/includes/_functions/admin_top_bar.php'; // Admin Top Bar. |
| 211 | 211 | require_once WPBC_PLUGIN_DIR . '/includes/_functions/admin-cost-correction.php'; // Shared Add Booking and Add Appointment exact-total control. |
| 212 | 212 | require_once WPBC_PLUGIN_DIR . '/includes/_functions/news_version.php'; // News, Version. |
| 213 | +require_once WPBC_PLUGIN_DIR . '/includes/_functions/class-wpbc-environment-policy.php'; // Shared environment identity and capability policy. | |
| 213 | 214 | require_once WPBC_PLUGIN_DIR . '/includes/_functions/versions.php'; // Versions. |
| 214 | 215 | require_once WPBC_PLUGIN_DIR . '/includes/_functions/booking-resources-catalog-compatibility.php'; // Temporary 11.6 Resources catalog compatibility. |
| 215 | 216 | require_once WPBC_PLUGIN_DIR . '/includes/_functions/sanitizing.php'; // Sanitizing. |
| 216 | 217 | require_once WPBC_PLUGIN_DIR . '/includes/_functions/request.php'; // Class for sanitizing $_REQUEST parameters and saving or getting it from DB // FixIn: 9.3.1.2. |
| @@ -236,8 +237,9 @@ | ||
| 236 | 237 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/capacity.php'; // Get Dates from DB - Capacity, Availability and more ... |
| 237 | 238 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/get_times_fields.php'; // Get Times Fields options from Booking Form. |
| 238 | 239 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/aggregate.php'; // Aggregate functions for 'aggregate' parameter in shortcode. |
| 239 | 240 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/where_to_save.php'; // Check where to save booking. |
| 241 | +require_once WPBC_PLUGIN_DIR . '/includes/_capacity/booking_availability_guard.php'; // Serialize final availability validation and booking persistence on supported databases. | |
| 240 | 242 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/create_booking.php'; // Functions to create new bookings. |
| 241 | 243 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/confirmation.php'; // Confirmation section - get data. |
| 242 | 244 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/confirmation_page.php'; // Confirmation Page. |
| 243 | 245 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/calendar_load.php'; // Scripts to load calendar. |
| @@ -243,31 +245,9 @@ | ||
| 243 | 245 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/calendar_load.php'; // Scripts to load calendar. |
| 244 | 246 | require_once WPBC_PLUGIN_DIR . '/includes/_capacity/captcha_simple_text.php'; // Simple text captcha checking. |
| 245 | 247 | |
| 246 | 248 | require_once WPBC_PLUGIN_DIR . '/core/wpbc-translation.php'; // Translation, must be loaded after '/core/wpbc-core.php', because there defined add_bk_filter(), etc... |
| 247 | -// FixIn: 8.9.4.12. | |
| 248 | -if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations.php' ) ) { | |
| 249 | 249 | |
| 250 | - require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations.php'; // All Translation Terms. | |
| 251 | - | |
| 252 | - // FixIn: 8.7.3.6. | |
| 253 | - if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations1.php' ) ) { | |
| 254 | - require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations1.php'; | |
| 255 | - } | |
| 256 | - if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations2.php' ) ) { | |
| 257 | - require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations2.php'; | |
| 258 | - } | |
| 259 | - if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations3.php' ) ) { | |
| 260 | - require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations3.php'; | |
| 261 | - } | |
| 262 | - if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations4.php' ) ) { | |
| 263 | - require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations4.php'; | |
| 264 | - } | |
| 265 | - if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations5.php' ) ) { | |
| 266 | - require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations5.php'; | |
| 267 | - } | |
| 268 | -} | |
| 269 | - | |
| 270 | 250 | require_once WPBC_PLUGIN_DIR . '/core/wpbc-frontend-messages.php'; // Visitor-facing form messages and multilingual overrides. |
| 271 | 251 | |
| 272 | 252 | require_once WPBC_PLUGIN_DIR . '/includes/publish/class-wpbc-booking-form-publisher.php'; // Neutral Booking Form page publishing service. |
| 273 | 253 | require_once WPBC_PLUGIN_DIR . '/includes/publish/wpbc-create-pages.php'; // Create pages for different purposes // FixIn: 9.6.2.10. |
| @@ -337,8 +317,11 @@ | ||
| 337 | 317 | |
| 338 | 318 | // Domain-neutral template-driven catalog mechanics shared by all registered catalogs. |
| 339 | 319 | require_once WPBC_PLUGIN_DIR . '/includes/_shared-ui-catalog/wpbc-ui-catalog.php'; |
| 340 | 320 | |
| 321 | +// Reusable Booking Resources read/create domain used by production workflows. | |
| 322 | +require_once WPBC_PLUGIN_DIR . '/includes/page-catalog-booking-resources/booking-resources-domain.php'; | |
| 323 | + | |
| 341 | 324 | if ( wpbc_is_11_6_features_enabled() ) { |
| 342 | 325 | // Independent template-driven Booking Resources catalog. |
| 343 | 326 | require_once WPBC_PLUGIN_DIR . '/includes/page-catalog-booking-resources/booking-resources-catalog.php'; |
| 344 | 327 | } |
| @@ -417,10 +400,10 @@ | ||
| 417 | 400 | require_once WPBC_PLUGIN_DIR . '/includes/page-settings-messages/settings_messages__page.php'; // Visitor-facing Form Messages settings. |
| 418 | 401 | require_once WPBC_PLUGIN_DIR . '/includes/page-settings-messages/ajax/settings_messages__save.php'; |
| 419 | 402 | |
| 420 | 403 | // Booking > Setup page // FixIn: 10.2.0.1. |
| 421 | -// FixIn: 9.8.0.2. | |
| 422 | -require_once WPBC_PLUGIN_DIR . '/includes/page-setup/setup__page.php'; | |
| 404 | +require_once WPBC_PLUGIN_DIR . '/includes/page-setup-wizard/first-run-launcher/class-wpbc-setup-wizard-first-install-state.php'; | |
| 405 | +require_once WPBC_PLUGIN_DIR . '/includes/page-setup-wizard/setup-wizard.php'; | |
| 423 | 406 | require_once WPBC_PLUGIN_DIR . '/includes/_tour/wpbc_tour.php'; // FixIn: 10.4.0.1. |
| 424 | 407 | |
| 425 | 408 | |
| 426 | 409 | require_once WPBC_PLUGIN_DIR . '/includes/_feedback/feedback.php'; // FixIn: 9.2.3.6. |